1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-17 07:34:25 +00:00
gitea/templates/user/settings
zeripath b82293270c
Add option to provide signature for a token to verify key ownership (#14054)
* 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>
2021-07-13 15:28:07 +02:00
..
account.tmpl Update JS dependencies (#15033) 2021-03-22 05:04:19 +01:00
applications_oauth2_edit.tmpl Update JS dependencies (#15033) 2021-03-22 05:04:19 +01:00
applications_oauth2.tmpl Update JS dependencies (#15033) 2021-03-22 05:04:19 +01:00
applications.tmpl Update JS dependencies (#15033) 2021-03-22 05:04:19 +01:00
grants_oauth2.tmpl Various UI fixes (#14239) 2021-01-04 13:18:12 +01:00
keys_gpg.tmpl Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
keys_principal.tmpl Update JS dependencies (#15033) 2021-03-22 05:04:19 +01:00
keys_ssh.tmpl Update JS dependencies (#15033) 2021-03-22 05:04:19 +01:00
keys.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
navbar.tmpl CSS navbar and color tweaks (#13609) 2020-11-26 19:33:28 +00:00
organization.tmpl Unified link creation. (#15619) 2021-04-30 19:25:13 +02:00
profile.tmpl Make allowed Visiblity modes configurable for Users (#16271) 2021-06-27 19:47:35 +01:00
repos.tmpl Enforce tab indentation in templates (#15289) 2021-04-10 23:46:37 -04:00
security_accountlinks.tmpl Update JS dependencies (#15033) 2021-03-22 05:04:19 +01:00
security_openid.tmpl Remove remaining fontawesome usage in templates (#15952) 2021-05-22 23:29:46 +02:00
security_twofa.tmpl Update JS dependencies (#15033) 2021-03-22 05:04:19 +01:00
security_u2f.tmpl Enforce tab indentation in templates (#15289) 2021-04-10 23:46:37 -04:00
security.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00
twofa_enroll.tmpl Add class to page content to unify top margin (#13766) 2020-11-30 23:00:14 -05:00