【发布时间】:2019-05-04 14:26:28
【问题描述】:
目前,我正在触发这样的密码重置:
static func firebasePasswordReset(email:String, responseError:@escaping (ResponseError?)->Void, completion:@escaping (
String)->Void){
Auth.auth().sendPasswordReset(withEmail: email) { (error) in
if(error != nil){
responseError(ResponseError.custom(error?.localizedDescription ?? "Unknow error occured. Please try again."))
}else{
completion(NSLocalizedString("Password reset link sent. Please check \(email).", comment: ""))
}
}
}
尽管一切正常,并且发送了相应电子邮件的链接,但用户会获得我在 Firebase 控制台中为我的网站设置的链接。
所以它是https://myprojectname/reset-password.html 页面。
现在,对于 iOS 用户,我不希望他们去网站重设密码。我想将他们重定向到一个应用程序,并在他们的 iOS 应用程序中打开一个表单。这有可能吗?
【问题讨论】:
-
你需要设置Universal Links
-
@InfinityJames 哦,太好了,谢谢!
标签: ios swift firebase firebase-authentication