Comments (3)
Hi @pjdvmalan and thank you for submitting this issue!
This is not a bug and is working as expected.
By default, the user's email address is not stored in the database. Because it's not stored in the database, we have no way of checking for duplicates.
Here's a link to the code within the command object that queries the database for duplicate users:
https://github.com/grails-plugins/grails-spring-security-ui/blob/master/plugin/grails-app/controllers/grails/plugin/springsecurity/ui/RegisterController.groovy#L272
And, please also notice, there is no email
associated with the user domain class so no checking of duplicates can be done.
Here's a link to the template used to generate the user domain class:
https://github.com/grails-plugins/grails-spring-security-core/blob/master/plugin/src/main/templates/Person.groovy.template
I will mark this as "Not a bug" and close
from grails-spring-security-ui.
Thank you for your feedback. Much appreciated & noted.
I guess that the issue arise from the following in the documentation:
RegisterController and its GSPs assume that your User domain class has an email field. Be sure to either rework the workflow (using the s2ui-override script) if you donβt need an email confirmation step or add an email field.
Some of the functionality/flow depends on an email adres presend - I am going on the principle that people do sometimes forget their password.
This may be something to be considered int the architecture going forward ... detect if an email is defined. If so - check for duplication.
Just a suggestion.
from grails-spring-security-ui.
This may be something to be considered int the architecture going forward ... detect if an email is defined. If so - check for duplication.
Thanks @pjdvmalan !
Would you be so kind as to submit your suggested improvement as a new issue?
from grails-spring-security-ui.
Related Issues (20)
- Create the default role specified in config during registration if it doesn't exist HOT 1
- bump up spring security core Version to 3.2.3
- Feature request: Add Challenge Questions to the Tabs when a User Search is Preformed HOT 1
- Saving a User with no Roles leaves the tab blank HOT 2
- Removing a Role throws an execption HOT 1
- Verifying a new user account does not unlock that account. HOT 6
- Does not behave well with Postgresql datasource configuration HOT 2
- In a Grails multi-project, there are errors when the User/Role domain classes are in a separate plugin subproject HOT 4
- Grails 4 Compatibility HOT 2
- User update removes all user roles (removeUserRole A bug has occurred to remove all user-roles) HOT 7
- Feature Request: tokenExpiration for RegistrationCode instances
- new users are not unlocked upon finishing the registration HOT 1
- Add support for role groups
- Flaws in Spring Security UI Plugin - Reference Documentation HOT 1
- Add/Remove Role from an User gives error when SpringSecurityCore classes are customized
- No plugin [spring-security-ui-1.0-RC3] installed, cannot uninstall HOT 1
- JDK 17 - Spring Security UI 4.0.0.M1 (Latest) "Failed to compile s2ui-override.groovy" HOT 2
- Dependency Dashboard
- Grails 6 support
- Create an issue template similar to what is used in the grails-data-mapping plugin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grails-spring-security-ui.