🐛 Fix web login error by the cors issue

This commit is contained in:
LittleSheep 2024-09-16 18:12:30 +08:00
parent 8a2d94cedf
commit e11bf204af

View File

@ -153,7 +153,7 @@ class _SignInScreenState extends State<SignInScreen> {
try {
// Check ticket
final resp = await client.patch('/auth', {
final resp = await client.request('/auth', 'PATCH', body: {
'ticket_id': _currentTicket!.id,
'factor_id': _factorPicked!,
'code': password,