From 7d06f83d381be18cf394891759a53e584eea1154 Mon Sep 17 00:00:00 2001 From: JingChiang Date: Sun, 8 Sep 2024 20:45:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E9=87=8D=E8=A4=87?= =?UTF-8?q?=E8=A8=BB=E5=86=8A=E9=98=B2=E5=91=86=E9=82=8F=E8=BC=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/RegisterPage.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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},