Skip to content

Instantly share code, notes, and snippets.

@Ke-
Last active December 27, 2015 04:19
Show Gist options
  • Select an option

  • Save Ke-/7266514 to your computer and use it in GitHub Desktop.

Select an option

Save Ke-/7266514 to your computer and use it in GitHub Desktop.
Set a Lasso user's password
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