mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-04 13:40:43 -03:00
Fix: InfoAlert
correjido que no llegaba el estado del alert a la pagina de login
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { apiBase } from "@/stores/url";
|
||||
import { sesionStore } from "@/stores/usuario";
|
||||
import { goto } from "$app/navigation";
|
||||
import type { RegisterDto } from "../../types";
|
||||
|
||||
@@ -24,9 +23,7 @@ export async function register(e:FormDataEvent,dto: RegisterDto, callbackfn:()=>
|
||||
});
|
||||
if (req.ok) {
|
||||
const data= await req.json();
|
||||
goto("/login", { state: {
|
||||
message: data.message,
|
||||
}});
|
||||
goto("/login?msg="+data.message);
|
||||
} else {
|
||||
callbackfn();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user