File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import 'package:ht_shared/ht_shared.dart'; // For exceptions
10
10
///
11
11
/// - For the user-facing app, it sends a verification code to the provided
12
12
/// email, supporting both sign-in and sign-up.
13
- /// - For the dashboard, the request body must include `"is_dashboard_login ": true` .
13
+ /// - For the dashboard, the request body must include `"isDashboardLogin ": true` .
14
14
/// In this mode, it first verifies the user exists and has 'admin' or
15
15
/// 'publisher' roles before sending a code, effectively acting as a
16
16
/// login-only gate.
@@ -44,7 +44,7 @@ Future<Response> onRequest(RequestContext context) async {
44
44
}
45
45
46
46
// Check for the optional dashboard login flag. Default to false if not present.
47
- final isDashboardLogin = (body['is_dashboard_login ' ] as bool ? ) ?? false ;
47
+ final isDashboardLogin = (body['isDashboardLogin ' ] as bool ? ) ?? false ;
48
48
49
49
// Basic email format check (more robust validation can be added)
50
50
// Using a slightly more common regex pattern
You can’t perform that action at this time.
0 commit comments