gitea/modules/structs
zeripath b82293270c
Add option to provide signature for a token to verify key ownership ()
* Add option to provide signed token to verify key ownership

Currently we will only allow a key to be matched to a user if it matches
an activated email address. This PR provides a different mechanism - if
the user provides a signature for automatically generated token (based
on the timestamp, user creation time, user ID, username and primary
email.

* Ensure verified keys can act for all active emails for the user

* Add code to mark keys as verified

* Slight UI adjustments

* Slight UI adjustments 2

* Simplify signature verification slightly

* fix postgres test

* add api routes

* handle swapped primary-keys

* Verify the no-reply address for verified keys

* Only add email addresses that are activated to keys

* Fix committer shortcut properly

* Restructure gpg_keys.go

* Use common Verification Token code

Signed-off-by: Andrew Thornton <art27@cantab.net>
..
admin_user.go Add Visible modes function from Organisation to Users too ()
attachment.go Fix wrong hint when status checking is running on pull request view ()
commit_status.go [Refactor] CombinedStatus and CommitStatus related functions & structs ()
cron.go Add cron running API ()
doc.go
fork.go
git_blob.go
git_hook.go
hook.go Refactor Webhook + Add X-Hub-Signature ()
issue.go rm gogs relict ()
issue_comment.go Display original author and URL information when showing migrated issues/comments ()
issue_label.go [API] Fix inconsistent label color format ()
issue_milestone.go Add Created & Updated to Milestone ()
issue_reaction.go [API] Fix 9544 | return 200 when reaction already exist ()
issue_stopwatch.go Display current stopwatch in navbar ()
issue_tracked_time.go [API] Extend times API ()
lfs_lock.go
miscellaneous.go API method to list all commits of a repository ()
notifications.go Introduce NotifySubjectType ()
org.go Fix some API bugs ()
org_member.go
org_team.go Add missing repo.projects unit into swagger ()
org_type.go Fixes - API Org Visibility ()
pull.go Add option to API to update PullRequest base branch ()
pull_review.go Expose resolver via API ()
release.go Add single release page and latest redirect ()
repo.go Add checkbox to delete pull branch after successful merge ()
repo_branch.go Add block on official review requests branch protection ()
repo_collaborator.go
repo_commit.go [API] Add affected files of commits to commit struct ()
repo_file.go enhancement: add signoff option in commit form ()
repo_key.go
repo_refs.go
repo_tag.go [API] Add repoCreateTag ()
repo_topic.go Add API endpoint for accessing repo topics ()
repo_tree.go
repo_watch.go
settings.go Add custom emoji support ()
status.go [Refactor] CombinedStatus and CommitStatus related functions & structs ()
task.go Move migrating repository from frontend to backend ()
user.go Add Visible modes function from Organisation to Users too ()
user_app.go Remove Unused Functions ()
user_email.go
user_gpgkey.go Add option to provide signature for a token to verify key ownership ()
user_key.go