From e76f32bc26d5b3b2358fb9b1af564a0d684228e3 Mon Sep 17 00:00:00 2001 From: moritz Date: Sun, 2 May 2021 00:22:32 +0200 Subject: [PATCH] Fix template at identifier usernameAttribute[email] --- lib/templates/sign_up/sign_up_page.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/templates/sign_up/sign_up_page.dart b/lib/templates/sign_up/sign_up_page.dart index a621d10..1df9b5b 100644 --- a/lib/templates/sign_up/sign_up_page.dart +++ b/lib/templates/sign_up/sign_up_page.dart @@ -269,9 +269,9 @@ class _SignUpPageState extends State { /*+++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: { @@ -305,9 +305,9 @@ class _SignUpPageState extends State { /*+++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'), @@ -324,9 +324,9 @@ class _SignUpPageState extends State { /*+++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) {