gitea/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_test.go
git_diff.go
issue_comment.go
issue_label.go
issue_mail.go
issue.go
login_source.go
mail.go
models_sqlite.go
models_test.go
models_tidb.go
models.go
org_team.go
org.go
pull.go
release.go
repo_branch.go
repo_collaboration.go
repo_editor.go
repo_mirror.go
repo_test.go
repo.go
ssh_key_test.go
ssh_key.go
token.go
update.go
user_mail.go
user.go
webhook_slack.go
webhook.go
wiki.go