···136136 setup(ctx, c.Bool("debug"))
137137138138 if setting.SSH.Disabled {
139139- println("Forgejo: SSH has been disabled")
139139+ fmt.Println("Forgejo: SSH has been disabled")
140140 return nil
141141 }
142142···164164 }
165165 switch key.Type {
166166 case asymkey_model.KeyTypeDeploy:
167167- println("Hi there! You've successfully authenticated with the deploy key named " + key.Name + ", but Forgejo does not provide shell access.")
167167+ fmt.Println("Hi there! You've successfully authenticated with the deploy key named " + key.Name + ", but Forgejo does not provide shell access.")
168168 case asymkey_model.KeyTypePrincipal:
169169- println("Hi there! You've successfully authenticated with the principal " + key.Content + ", but Forgejo does not provide shell access.")
169169+ fmt.Println("Hi there! You've successfully authenticated with the principal " + key.Content + ", but Forgejo does not provide shell access.")
170170 default:
171171- println("Hi there, " + user.Name + "! You've successfully authenticated with the key named " + key.Name + ", but Forgejo does not provide shell access.")
171171+ fmt.Println("Hi there, " + user.Name + "! You've successfully authenticated with the key named " + key.Name + ", but Forgejo does not provide shell access.")
172172 }
173173- println("If this is unexpected, please log in with password and setup Forgejo under another user.")
173173+ fmt.Println("If this is unexpected, please log in with password and setup Forgejo under another user.")
174174 return nil
175175 } else if c.Bool("debug") {
176176 log.Debug("SSH_ORIGINAL_COMMAND: %s", os.Getenv("SSH_ORIGINAL_COMMAND"))