简体   繁体   中英

Custom login checks (Grails Spring Security)

In our system, users are never deleted from the database. What we do is to anonymize their information and add a timestamp in the date_delete column.

How do I configure Grails Spring Security to check that a user is not "soft deleted" from the DB?

You will need to implement the UserDetailsService interface and within the loadUserByUsername method you can customize the way users are located.

Refer to the Custom UserDetailsService within the plugin documentation for more information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM