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

fix: signup logic when email and phone not enabled #298

Merged
merged 1 commit into from
Sep 21, 2021
Merged

fix: signup logic when email and phone not enabled #298

merged 1 commit into from
Sep 21, 2021

Conversation

chinggg
Copy link
Contributor

@chinggg chinggg commented Sep 21, 2021

IsSignupItemEnabled fails to do what it should do. It just check the existence of an item in application.SignupItems.
But the SignupItems will always have all the items, even those items which are not visible or required. So I use IsSignupItemVisible instead.
In fact, an item is actually enabled only if it is visible, so IsSignupItemEnabled is of no use. Can we just remove it?

Signed-off-by: chinggg <24590067+chinggg@users.noreply.github.com>
@hsluoyz
Copy link
Member

hsluoyz commented Sep 21, 2021

@chinggg good finding! Yes, please remove IsSignupItemEnabled()

@hsluoyz hsluoyz merged commit 7020bc0 into casdoor:master Sep 21, 2021
hsluoyz pushed a commit that referenced this pull request Sep 21, 2021
Signed-off-by: chinggg <24590067+chinggg@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants