Skip to content

Commit

Permalink
Fix template at identifier usernameAttribute[email]
Browse files Browse the repository at this point in the history
  • Loading branch information
finkmoritz committed May 1, 2021
1 parent 958479a commit e76f32b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/templates/sign_up/sign_up_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ class _SignUpPageState extends State<SignUpPage> {
/*+++START usernameAttributes[username]+++*/
username: _usernameController.text.trim(),
/*+++END usernameAttributes[username]+++*/
/*+++START usernameAttributes[username]+++
/*+++START usernameAttributes[email]+++
username: _emailController.text.trim(),
+++END usernameAttributes[username]+++*/
+++END usernameAttributes[email]+++*/
password: _passwordController.text.trim(),
options: CognitoSignUpOptions(
userAttributes: {
Expand Down Expand Up @@ -305,9 +305,9 @@ class _SignUpPageState extends State<SignUpPage> {
/*+++START usernameAttributes[username]+++*/
username: _usernameController.text.trim(),
/*+++END usernameAttributes[username]+++*/
/*+++START usernameAttributes[username]+++
/*+++START usernameAttributes[email]+++
username: _emailController.text.trim(),
+++END usernameAttributes[username]+++*/
+++END usernameAttributes[email]+++*/
);
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text('Sent confirmation code'),
Expand All @@ -324,9 +324,9 @@ class _SignUpPageState extends State<SignUpPage> {
/*+++START usernameAttributes[username]+++*/
username: _usernameController.text.trim(),
/*+++END usernameAttributes[username]+++*/
/*+++START usernameAttributes[username]+++
/*+++START usernameAttributes[email]+++
username: _emailController.text.trim(),
+++END usernameAttributes[username]+++*/
+++END usernameAttributes[email]+++*/
confirmationCode: _confirmationCodeController.text.trim(),
);
if (result.isSignUpComplete) {
Expand Down

0 comments on commit e76f32b

Please sign in to comment.