Beispiel #1
0
        public DataResult <bool> SavePasswordResetToken(UserModel user, string token)
        {
            try
            {
                var now = m_dateTimeProvider.UtcNow;

                m_userUoW.SavePasswordResetToken(now, user.Id, token);
                return(Success(true));
            }
            catch (DatabaseException e)
            {
                m_logger.LogWarning(e);
                return(Error <bool>(e.Message));
            }
        }