Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow others passwords encryption algos #1457

Closed
lianglee opened this issue Mar 10, 2019 · 0 comments
Closed

allow others passwords encryption algos #1457

lianglee opened this issue Mar 10, 2019 · 0 comments

Comments

@lianglee
Copy link
Member

lianglee commented Mar 10, 2019

allow others passwords encryption algos,
bcrypt, argon2i, md5, from v5.1 default is set to bcrypt

you can change to any one by adding a new hook into your component

ossn_add_hook('user', 'password:algorithm', 'change_password_algo');
function change_password_algo(){
        return 'argon2i';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant