Last active
December 27, 2015 04:19
-
-
Save Ke-/7266514 to your computer and use it in GitHub Desktop.
Set a Lasso user's password
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
| define set_user_password(user::string,password::string) => { | |
| #password = security_registry->encodePassword('Lasso Security',#user,#password) | |
| inline( | |
| -database = 'security_auth_registry', | |
| -sql = 'UPDATE users SET password_ha1 = "'+#password->encodesql+'" | |
| WHERE name = "'+#user->encodesql+ '" ' | |
| ) => {} | |
| } | |
| // Usage: | |
| // set_user_password('admin','Test1') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment