mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-10-31 18:46:28 +01:00
Fix validation for user name, page name and repository name.
This commit is contained in:
@@ -130,7 +130,7 @@ trait SettingsControllerBase extends ControllerBase {
|
||||
/**
|
||||
* Provides Constraint to validate the collaborator name.
|
||||
*/
|
||||
def collaborator: Constraint = new Constraint(){
|
||||
private def collaborator: Constraint = new Constraint(){
|
||||
def validate(name: String, value: String): Option[String] = {
|
||||
getAccountByUserName(value) match {
|
||||
case None => Some("User does not exist.")
|
||||
|
||||
Reference in New Issue
Block a user