mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
[API Node] Reset password (#3578)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
browserLocalPersistence,
|
||||
createUserWithEmailAndPassword,
|
||||
onAuthStateChanged,
|
||||
sendPasswordResetEmail,
|
||||
setPersistence,
|
||||
signInWithEmailAndPassword,
|
||||
signInWithPopup,
|
||||
@@ -226,6 +227,11 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
|
||||
const logout = async (): Promise<void> =>
|
||||
executeAuthAction((authInstance) => signOut(authInstance))
|
||||
|
||||
const sendPasswordReset = async (email: string): Promise<void> =>
|
||||
executeAuthAction((authInstance) =>
|
||||
sendPasswordResetEmail(authInstance, email)
|
||||
)
|
||||
|
||||
const addCredits = async (
|
||||
requestBodyContent: CreditPurchasePayload
|
||||
): Promise<CreditPurchaseResponse | null> => {
|
||||
@@ -329,6 +335,7 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
|
||||
openSignInPanel,
|
||||
openCreditsPanel,
|
||||
fetchBalance,
|
||||
accessBillingPortal
|
||||
accessBillingPortal,
|
||||
sendPasswordReset
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user