mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
Improve email and phone checking in Signup().
This commit is contained in:
@ -64,6 +64,15 @@ func (application *Application) IsSignupItemVisible(itemName string) bool {
|
||||
return signupItem.Visible
|
||||
}
|
||||
|
||||
func (application *Application) IsSignupItemRequired(itemName string) bool {
|
||||
signupItem := application.getSignupItem(itemName)
|
||||
if signupItem == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
return signupItem.Required
|
||||
}
|
||||
|
||||
func (application *Application) GetSignupItemRule(itemName string) string {
|
||||
signupItem := application.getSignupItem(itemName)
|
||||
if signupItem == nil {
|
||||
|
Reference in New Issue
Block a user