mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 13:35:50 +01:00
Fix the index page.
This commit is contained in:
@@ -6,6 +6,10 @@ import Database.threadLocalSession
|
||||
|
||||
trait AccountService {
|
||||
|
||||
def getAccountByUserId(userId: Long): Option[Account] =
|
||||
Query(Accounts) filter(_.userId is userId.bind) firstOption
|
||||
|
||||
|
||||
def getAccountByUserName(userName: String): Option[Account] =
|
||||
Query(Accounts) filter(_.userName is userName.bind) firstOption
|
||||
|
||||
|
||||
Reference in New Issue
Block a user