Core functionality for new aiterp.net servers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
257 B

7 years ago
  1. package auth
  2. type Authenticator interface {
  3. ID() string
  4. Name() string
  5. Exists(username string) bool
  6. Find(userid string) *User
  7. Login(username, password string) (*User, error)
  8. Register(username, password string, data map[string]string) (*User, error)
  9. }