(refs #115)Fix account registration page and add public key deletion

This commit is contained in:
takezoe
2014-03-09 01:38:23 +09:00
parent 9541771703
commit 5e6c33df6c
4 changed files with 63 additions and 4 deletions

View File

@@ -12,4 +12,8 @@ trait SshKeyService {
def getPublicKeys(userName: String): List[SshKey] =
Query(SshKeys).filter(_.userName is userName.bind).sortBy(_.sshKeyId).list
def deletePublicKey(userName: String, sshKeyId: Int): Unit =
SshKeys filter (_.byPrimaryKey(userName, sshKeyId)) delete
}