function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
David Benkoel 3David Benkoel 3 

What does Site.login() really do?


According to the login(username, password, startUrl) documentation, this method allows users to log in to the current site with the given username and password, then takes them to the startUrl.

More concretely, what runs under the hood when users log in to the current site?

Thank you
mukesh guptamukesh gupta
Hi David,

Site.login function to authenticate the username, password and redirect it to the Community landing page.

Please follow below url that's will helpful

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.