单击验证链接后,Firebase将用户重定向到页面 [英] Firebase redirect user to a page after clicking verification link

查看:86
本文介绍了单击验证链接后,Firebase将用户重定向到页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Ionic的Web应用程序中使用firebase,我想在用户单击验证电子邮件中的链接后将其重定向到特定页面(在我的情况下为登录页面).
此刻,当用户单击验证链接时,他会在另一个浏览器页面上重定向,该页面说他已确认电子邮件.

I'm using firebase in my web app with Ionic and I would like to redirect the user to a specific page (the login page, in my case) after he clicks on the link in the verification email.
At the moment, when the user clicks on the verification link, he is redirected on another browser page that says that he has confirmed the email.

我想直接将他重定向到我的Web应用程序页面,而无需通过该确认.
可以这样做吗?

I would like to redirect him directly to a page of my web app, without passing through that confirmation.
Is it possible to do that?

推荐答案

是的.在左侧的firebase.console中查找身份验证". 然后找到模板",然后查找电子邮件地址验证".我认为它是默认打开的.在模板上,您将看到一个pensil,单击此按钮.之后,您可以根据需要更改模板.在底部,您将找到自定义操作URL"链接.打开此链接,将您的URL粘贴到模式窗口中并保存.就是这样.

Yes it's possible. Look in the firebase.console on the left for "Authentication". Then find "Templates" and look for "Email address verification". I think it's default opened. On the template you will see a pensil, click on this button. After that you can change your template however you want. At the bottom you will find the link "customize action URL". Open this link, paste your URL in the modal window and save. That's it.

第一步

最后一步

这篇关于单击验证链接后,Firebase将用户重定向到页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆