Exemplo n.º 1
0
        public string RecoverPasswordGetRequest(Environment env, string email, string token)
        {
            UserAccount account = null;

            if (IsValidToken(email, token, out account))
            {
                PasswordRecoveryData precovery = new PasswordRecoveryData(email, token);
                env.Data = new List <object>();
                env.Data.Add(precovery);
                env.State = State.RecoveringPassword;
                return(m_WebApp.ReadFile(env, "index.html"));
            }
            else
            {
                return("<p>" + _("Invalid token.", env) + "</p>");
            }
        }
 public string RecoverPasswordGetRequest(Environment env, string email, string token)
 {
     UserAccount account = null;
     if (IsValidToken(email, token, out account))
     {
         PasswordRecoveryData precovery = new PasswordRecoveryData(email, token);
         env.Data = new List<object>();
         env.Data.Add(precovery);
         env.State = State.RecoveringPassword;
         return m_WebApp.ReadFile(env, "index.html");
     }
     else
     {
         return "<p>" + _("Invalid token.", env) + "</p>";
     }
 }