Here is the code:

Interesting options:
remember: Enables remember me when auto-logged in
silent: Returns a boolean (in this case false rather than an exception if an authentication error occurs).

 

See you soon for new tips and tricks...