File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
javascript/widgets/handler Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,22 @@ firebaseui.auth.widget.handler.handlePasswordSignUp = function(
70
70
* @private
71
71
*/
72
72
firebaseui . auth . widget . handler . onSignUpSubmit_ = function ( app , component ) {
73
+ var shouldDisplayName = app . getConfig ( ) . getShouldDisplayName ( ) ;
74
+
73
75
// Check fields are valid.
74
76
var email = component . checkAndGetEmail ( ) ;
75
- var name = component . checkAndGetName ( ) ;
77
+
78
+ var name = null ;
79
+ if ( shouldDisplayName ) {
80
+ name = component . checkAndGetName ( ) ;
81
+ }
82
+
76
83
var password = component . checkAndGetNewPassword ( ) ;
77
84
if ( ! email ) {
78
85
component . getEmailElement ( ) . focus ( ) ;
79
86
return ;
80
87
}
81
- if ( ! name ) {
88
+ if ( shouldDisplayName && ! name ) {
82
89
component . getNameElement ( ) . focus ( ) ;
83
90
return ;
84
91
}
You can’t perform that action at this time.
0 commit comments