Reputation: 1207
Would it be possible to turn off password encoding in Spring Security? If so, how?
Upvotes: 2
Views: 3466
Reputation: 75671
It's a really really bad idea in general, but if you have a use case for it then it is doable. Override the passwordEncoder
bean in grails-app/conf/spring/resources.groovy
:
import org.springframework.security.authentication.encoding.PlaintextPasswordEncoder
beans = {
passwordEncoder(PlaintextPasswordEncoder)
}
Upvotes: 7