Skip to content

Commit 05b3f3e

Browse files
committed
Disable autocompletion for email field
1 parent 0e32373 commit 05b3f3e

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

FirebaseAuthUI/FIREmailEntryViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
199199
cell.textField.delegate = self;
200200
cell.accessibilityIdentifier = kEmailCellAccessibilityID;
201201
_emailField = cell.textField;
202+
_emailField.secureTextEntry = NO;
202203
_emailField.autocorrectionType = UITextAutocorrectionTypeNo;
203204
_emailField.autocapitalizationType = UITextAutocapitalizationTypeNone;
204205
_emailField.returnKeyType = UIReturnKeyNext;

FirebaseAuthUI/FIRPasswordRecoveryViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,11 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
167167
_emailField.delegate = self;
168168
_emailField.text = _email;
169169
_emailField.placeholder = [FIRAuthUIStrings enterYourEmail];
170+
_emailField.secureTextEntry = NO;
170171
_emailField.returnKeyType = UIReturnKeyNext;
171172
_emailField.keyboardType = UIKeyboardTypeEmailAddress;
173+
_emailField.autocorrectionType = UITextAutocorrectionTypeNo;
174+
_emailField.autocapitalizationType = UITextAutocapitalizationTypeNone;
172175
[cell.textField addTarget:self
173176
action:@selector(textFieldDidChange)
174177
forControlEvents:UIControlEventEditingChanged];

FirebaseAuthUI/FIRPasswordSignInViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
179179
_emailField.secureTextEntry = NO;
180180
_emailField.returnKeyType = UIReturnKeyNext;
181181
_emailField.keyboardType = UIKeyboardTypeEmailAddress;
182+
_emailField.autocorrectionType = UITextAutocorrectionTypeNo;
183+
_emailField.autocapitalizationType = UITextAutocapitalizationTypeNone;
182184
} else if (indexPath.row == 1) {
183185
cell.label.text = [FIRAuthUIStrings password];
184186
_passwordField = cell.textField;

FirebaseAuthUI/FIRPasswordSignUpViewController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
253253
_emailField.secureTextEntry = NO;
254254
_emailField.returnKeyType = UIReturnKeyNext;
255255
_emailField.keyboardType = UIKeyboardTypeEmailAddress;
256+
_emailField.autocorrectionType = UITextAutocorrectionTypeNo;
257+
_emailField.autocapitalizationType = UITextAutocapitalizationTypeNone;
256258
} else if (indexPath.row == 1) {
257259
cell.label.text = [FIRAuthUIStrings name];
258260
cell.accessibilityIdentifier = kNameSignUpCellAccessibilityID;

0 commit comments

Comments
 (0)