Skip to content

Commit fcb28bc

Browse files
SebastienFCTrenkelvin
authored andcommitted
Addressing issue #464 (#757)
- Always displaying the displayName isn't a option as a custom field (_requireDisplayName) has been created specificially for this - The email address on the signin and signup controllers have been disabled from editing for the following reason: the email address is being verified in the previous screen and allowing the user to edit it at this point bypass all the previous validations (so the user can potentially signup with an existing email address for example)
1 parent 6caba23 commit fcb28bc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

EmailAuth/FirebaseEmailAuthUI/FUIPasswordSignInViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
249249
cell.textField.delegate = self;
250250
if (indexPath.row == 0) {
251251
cell.label.text = FUILocalizedString(kStr_Email);
252+
cell.textField.enabled = NO;
252253
_emailField = cell.textField;
253254
_emailField.text = _email;
254255
_emailField.placeholder = FUILocalizedString(kStr_EnterYourEmail);

EmailAuth/FirebaseEmailAuthUI/FUIPasswordSignUpViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
271271
if (indexPath.row == 0) {
272272
cell.label.text = FUILocalizedString(kStr_Email);
273273
cell.accessibilityIdentifier = kEmailSignUpCellAccessibilityID;
274+
cell.textField.enabled = NO;
274275
_emailField = cell.textField;
275276
_emailField.text = _email;
276277
_emailField.placeholder = FUILocalizedString(kStr_EnterYourEmail);

0 commit comments

Comments
 (0)