您好我正在使用angularjs和spring mvc工作忘记密码。我能够将密码重置链接发送到已注册的电子邮件,使用该链接可以创建新密码。但是发送到gmail的链接没有重定向到重置密码页面直接打开家。请帮忙。
这是我忘记的密码链接。 登录
</form>
</li>
</ul>
</li>
<li class="register"><a href="#!/register">Register</a></li>
</ul>
点击忘记密码?莫代尔将开放,即
<div class="modal fade" id="myModalp" tabindex="-1" role="dialog" aria-labelledby="edit" aria-hidden="true" ng-controller="LoginCtrl">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title custom_align" id="Heading">Enter Email</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-3 text-right">Email :</div>
<div class="col-sm-9"><input type="text" placeholder="Enter your email" ng-model="user.email" class="addUrl form-control"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success" ng-click="submitEmail(user.email)">Publish</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
<!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- end of model adding beats -->
Controller.java
@Override
public void passwordReset(String to) throws Exception {
String subject = "Blogbeats Password Reset Link";
String body = "<div>Click below link to reset your blogbeats password <a href='http://localhost:8080/blogbeats/#!/forgotpass'>here</a></div>";
sendMail(to, subject, body);
}
此链接将转到已注册的邮件,但是当用户点击其重定向到http://localhost:8080/blogbeats/#!/home时。 如何将其重定向到http://localhost:8080/blogbeats/#!/forgotpass
答案 0 :(得分:0)
使用Spring Security确保spring mvc应用程序安全吗?