mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
Add new user creation stuff.
This commit is contained in:
@@ -8,6 +8,11 @@ trait AccountService {
|
||||
|
||||
def getAccountByUserName(userName: String): Option[Account] =
|
||||
Query(Accounts) filter(_.userName is userName.bind) firstOption
|
||||
|
||||
def getAllUsers(): List[Account] =
|
||||
Query(Accounts) sortBy(_.userName) list
|
||||
|
||||
def createAccount(account: Account): Unit = Accounts.* insert account
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user