//[HttpGet] public void ResetPassword(ResetToken token) { var vr = ValidateResetToken(token); if (!vr.Success) { throw new NbException(vr.Message); } //return View(); }
private MessageResult ValidateResetToken(ResetToken token) { var vr = token.ValidateSelf(); if (!vr.Success) { return(vr); } vr = _passwordResetByEmailService.Validate(token); if (!vr.Success) { return(vr); } return(new MessageResult() { Success = true, Message = "ResetToken Validate OK" }); }
public MessageResult Validate(ResetToken token) { throw new NotImplementedException(); }