mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
docs: fix issue #13025 by removing empty space character while signing in to prevent 'snackbar error Unable to validate email address: invalid format'
This commit is contained in:
1 parent
bc142fc53f
commit
7c290d06e1
3 files changed
+8
-8
No files matched your search
@@ -237,7 +237,7 @@ class _LoginPageState extends State<LoginPage> {
|
||||
});
|
||||
try {
|
||||
await supabase.auth.signInWithOtp(
|
||||
email: _emailController.text,
|
||||
email: _emailController.text.trim(),
|
||||
emailRedirectTo:
|
||||
kIsWeb ? null : 'io.supabase.flutterquickstart://login-callback/',
|
||||
);
|
||||
@@ -358,8 +358,8 @@ class _AccountPageState extends State<AccountPage> {
|
||||
setState(() {
|
||||
_loading = true;
|
||||
});
|
||||
final userName = _usernameController.text;
|
||||
final website = _websiteController.text;
|
||||
final userName = _usernameController.text.trim();
|
||||
final website = _websiteController.text.trim();
|
||||
final user = supabase.auth.currentUser;
|
||||
final updates = {
|
||||
'id': user!.id,
|
||||
@@ -682,8 +682,8 @@ class _AccountPageState extends State<AccountPage> {
|
||||
setState(() {
|
||||
_loading = true;
|
||||
});
|
||||
final userName = _usernameController.text;
|
||||
final website = _websiteController.text;
|
||||
final userName = _usernameController.text.trim();
|
||||
final website = _websiteController.text.trim();
|
||||
final user = supabase.auth.currentUser;
|
||||
final updates = {
|
||||
'id': user!.id,
|
||||
|
||||
@@ -48,8 +48,8 @@ class _AccountPageState extends State<AccountPage> {
|
||||
setState(() {
|
||||
_loading = true;
|
||||
});
|
||||
final userName = _usernameController.text;
|
||||
final website = _websiteController.text;
|
||||
final userName = _usernameController.text.trim();
|
||||
final website = _websiteController.text.trim();
|
||||
final user = supabase.auth.currentUser;
|
||||
final updates = {
|
||||
'id': user!.id,
|
||||
|
||||
@@ -25,7 +25,7 @@ class _LoginPageState extends State<LoginPage> {
|
||||
});
|
||||
try {
|
||||
await supabase.auth.signInWithOtp(
|
||||
email: _emailController.text,
|
||||
email: _emailController.text.trim(),
|
||||
emailRedirectTo:
|
||||
kIsWeb ? null : 'io.supabase.flutterquickstart://login-callback/',
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user