forgejo/models
stroucki 3a3782bb7f Handle ssh key import better (#224)
* Handle user ssh key input better

ssh_key: when user submitted keys had a newline at the end, strings.Split
would have created a slice with an empty last element, and the key type
check would be incorrect. Perhaps a better way is to look for 'ssh-rsa' or
'ssh-dsa' at the beginning of the string, but this is simple.

* ssh_key: correct indentation
2016-11-24 08:52:55 +08:00
..
migrations
access.go
action.go
admin.go
error.go
git_diff.go
git_diff_test.go
issue.go Bug fixed for issues (#156) 2016-11-12 13:06:33 +01:00
issue_comment.go
issue_label.go
issue_mail.go
login_source.go
mail.go
models.go
models_sqlite.go
models_test.go
models_tidb.go
org.go
org_team.go
pull.go
release.go
repo.go
repo_branch.go
repo_collaboration.go
repo_editor.go
repo_mirror.go
repo_test.go
ssh_key.go Handle ssh key import better (#224) 2016-11-24 08:52:55 +08:00
ssh_key_test.go
token.go
update.go
user.go
user_mail.go
webhook.go
webhook_slack.go
wiki.go