angular2-routing - 当我单击电子邮件中的忘记密码链接时,Angular 4 重定向到登录?
问题描述
当我收到电子邮件并单击它或将其复制粘贴到浏览器中时,我在 Angular 中忘记了密码,它会毫无理由地重定向到登录页面,无论是单例还是子例。
// { path: 'login', component: LoginComponent },
// { path: 'reset/:token', component: ResetPasswordComponent, pathMatch: 'full' },
{
path: 'guest',
component: GuestComponent,
canActivateChild: [GuestGuardService],
children: [
{
path: 'login',
component: LoginComponent
},
// {
// path: 'forgot',
// component: ForgotPassComponent,
// },
{
path: 'forgot/:token',
component: ResetPasswordComponent,
}
]
},
来宾组件 HTML 具有:<router-outlet></router-outlet>
将链接放在忘记密码链接旁边时,它可以工作,但不能通过电子邮件工作。有人知道吗?
GuestGuardService
只看它是否正在登录并注销。
解决方案
推荐阅读
- javascript - Web API 控制器 POST & PUT & DELETE 无法正常工作
- php - MPDF - 在 html 输出中包含 PHP 变量
- javascript - 删除重复的对象(JSON)节点 - JavaScript
- html - TD标签中的文本右对齐
- arrays - 按值排序多维关联数组 (SWIFT)
- sql - 为连接表中所有缺失的组合返回 0
- google-apps-script - 在 Google 的开发者控制台上创建的应用程序中如何创建 OAuth 凭据?
- oracle - 40735: 按下按钮时触发器引发未处理的异常 ORA-305500
- java - 无法连接到 oracle 数据库。它说“无法从数据源确定 jdbc url”
- laravel - 尝试在 GetStream 中向用户添加提要时出错