Exemplo n.º 1
0
        public async Task <AuthoriseResult> Authorise(string username, string password)
        {
            var result = new AuthoriseResult();

            var user = await FindAsync(username, password);

            if (user == null)
            {
                result.Errors.Add("Invalid credentials");
            }
            else
            {
                result.User = user;
            }

            return(result);
        }
Exemplo n.º 2
0
 public RecordingPaymentAuthoriserStub(AuthoriseResult authResult = AuthoriseResult.Approved)
 {
     this.authResult = authResult;
 }