mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 06:55:54 +01:00
(refs #115)Add TODO
This commit is contained in:
@@ -16,6 +16,7 @@ class PublicKeyAuthenticator(context: ServletContext) extends PublickeyAuthentic
|
||||
|
||||
override def authenticate(username: String, key: PublicKey, session: ServerSession): Boolean = {
|
||||
Database(context) withTransaction {
|
||||
// TODO Check permission to the repository here?
|
||||
getPublicKeys(username).exists { sshKey =>
|
||||
str2PublicKey(sshKey.publicKey) match {
|
||||
case Some(publicKey) => key.equals(publicKey)
|
||||
|
||||
Reference in New Issue
Block a user