mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
Add AccountService#updateLastLoginDate().
This commit is contained in:
@@ -28,6 +28,14 @@ trait AccountService {
|
||||
account.lastLoginDate)
|
||||
}
|
||||
|
||||
def updateLastLoginDate(userName: String): Unit = {
|
||||
val q = for {
|
||||
a <- Accounts if a.userName is userName.bind
|
||||
} yield a.lastLoginDate
|
||||
|
||||
q.update(new java.sql.Date(System.currentTimeMillis))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
object AccountService {
|
||||
|
||||
Reference in New Issue
Block a user