Created
December 2, 2019 19:30
-
-
Save alexandreelise/2fa2c5ce2a823bc2f08abbb91cd44274 to your computer and use it in GitHub Desktop.
Joomla! 3 user login programmatically using a simple php snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @var bool $result_login true on successful login, false otherwise | |
*/ | |
$result_login = Factory::getApplication()->login( | |
[ | |
'username' => 'example', | |
'password' => 'mysupersecretpassword' | |
], | |
[ | |
'remember' => true, | |
'silent' => true | |
] | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment