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.
18 lines
381 B
18 lines
381 B
package main |
|
|
|
import ( |
|
"code.gitea.io/gitea/models" |
|
"git.jonasfranz.software/JonasFranzDEV/giteaplugin/interfaces" |
|
) |
|
|
|
type UserDatabaseImpl struct {} |
|
|
|
func (*UserDatabaseImpl) CreateUser(user *interfaces.User) error { |
|
return models.CreateUser(&models.User{ |
|
Name: user.Name, |
|
Email: user.Email, |
|
Passwd: user.Passwd, |
|
IsAdmin: user.IsAdmin, |
|
IsActive: user.IsActive, |
|
}) |
|
}
|
|
|