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.

9 lines
223 B

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