mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
(refs #335)Add Scaladoc
This commit is contained in:
@@ -98,6 +98,9 @@ trait AccountService {
|
|||||||
isGroupAccount = false,
|
isGroupAccount = false,
|
||||||
isRemoved = false)
|
isRemoved = false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the account by user name.
|
||||||
|
*/
|
||||||
def updateAccount(account: Account): Unit =
|
def updateAccount(account: Account): Unit =
|
||||||
Accounts
|
Accounts
|
||||||
.filter { a => a.userName is account.userName.bind }
|
.filter { a => a.userName is account.userName.bind }
|
||||||
@@ -113,6 +116,9 @@ trait AccountService {
|
|||||||
account.lastLoginDate,
|
account.lastLoginDate,
|
||||||
account.isRemoved)
|
account.isRemoved)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the account by mail address
|
||||||
|
*/
|
||||||
def updateAccountByMailAddress(account: Account): Unit =
|
def updateAccountByMailAddress(account: Account): Unit =
|
||||||
Accounts
|
Accounts
|
||||||
.filter { a => a.mailAddress is account.mailAddress.bind }
|
.filter { a => a.mailAddress is account.mailAddress.bind }
|
||||||
|
|||||||
Reference in New Issue
Block a user