✨ Add Reset Password e2e tests (#1270)
This commit is contained in:
@@ -34,7 +34,11 @@ const useAuth = () => {
|
||||
|
||||
onSuccess: () => {
|
||||
navigate({ to: "/login" })
|
||||
showToast("Success!", "User created successfully.", "success")
|
||||
showToast(
|
||||
"Account created.",
|
||||
"Your account has been created successfully.",
|
||||
"success",
|
||||
)
|
||||
},
|
||||
onError: (err: ApiError) => {
|
||||
let errDetail = (err.body as any)?.detail
|
||||
|
@@ -60,7 +60,7 @@ function ResetPassword() {
|
||||
const mutation = useMutation({
|
||||
mutationFn: resetPassword,
|
||||
onSuccess: () => {
|
||||
showToast("Success!", "Password updated.", "success")
|
||||
showToast("Success!", "Password updated successfully.", "success")
|
||||
reset()
|
||||
navigate({ to: "/login" })
|
||||
},
|
||||
|
Reference in New Issue
Block a user