Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
268 views
in Technique[技术] by (71.8m points)

Grails Spring-security-ui plugin, not using password encryption

So, I have been making an app, got the back end sorted, generated the user,role and userRole classes in the spring-security-core plugin,within a domain plugin, then used the override command on s2ui to make the login and register controllers, within the main app.

I have the email verification working perfectly and when I bootstrap my admin and customer users and roles, I can log in perfectly.

But if i register a user, and then click on the email link, it logs me in using that, but if I log out and try to log back in, it does not recognise the password.

I am using grails 4.0.5 with jvm 1.8, with the security-core plugin: 4.0.3 and security-ui plugin: 4.0.0.M1.

If there is any more info needed then please let me know, I have probably missed something silly.

Thanks in advance.

question from:https://stackoverflow.com/questions/65843010/grails-spring-security-ui-plugin-not-using-password-encryption

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

For anyone else with this issue, make sure you have this line in your application.groovy.

grails.plugin.springsecurity.ui.encodePassword = true


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...