diff --git a/lib/RegisterPage.dart b/lib/RegisterPage.dart index 454ac3f..dcf0923 100644 --- a/lib/RegisterPage.dart +++ b/lib/RegisterPage.dart @@ -176,8 +176,8 @@ class _RegisterPageState extends State { String password = _passwordController.text; var result = await conn.execute( - 'SELECT * FROM HomeLogin WHERE homeEmail = :email AND homePassword = :password', - {'email': email, 'password': password}, + 'SELECT * FROM HomeLogin WHERE homeEmail = :email', + {'email': email}, ); if (result.rows.isNotEmpty) { @@ -185,6 +185,7 @@ class _RegisterPageState extends State { SnackBar(content: Text('註冊失敗:電子信箱已被使用,請嘗試更換電子信箱')), ); } else { + // TODO: Phone Address is setting not null in database, remove it or setting default value await conn.execute( 'INSERT INTO HomeLogin (homeName, homeEmail, homePassword) VALUES (:name, :email, :password)', {'name': name, 'email': email, 'password': password},