Esempio n. 1
0
        /// <summary>
        /// Authenticates given username and password to check whether their credentials match with an account
        /// </summary>
        /// <param name="username">Given username (email)</param>
        /// <param name="password">Given password</param>
        /// <returns>User that matches given credentials</returns>
        public User AuthenticateUser(string username, string password)
        {
            var user = _context.AuthenticateUser(username, password);

            return(user);
            //throw new InvalidCredentialException("Uw inloggegevens komen niet overeen met een bestaand account.");
        }