AccountDatabase represents an account database.
| 40 | |
| 41 | // AccountDatabase represents an account database. |
| 42 | type AccountDatabase interface { |
| 43 | // Look up the account matching the given localpart. |
| 44 | GetAccountByLocalpart(ctx context.Context, localpart string) (*api.Account, error) |
| 45 | GetAccountByPassword(ctx context.Context, localpart, password string) (*api.Account, error) |
| 46 | } |
| 47 | |
| 48 | // VerifyUserFromRequest authenticates the HTTP request, |
| 49 | // on success returns Device of the requester. |
no outgoing calls
no test coverage detected