summaryrefslogtreecommitdiffstats
path: root/templates/user/settings (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add support for FIDO U2F (#3971)Jonas Franz2018-05-193-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for U2F Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add vendor library Add missing translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add U2F support for Firefox, Chrome (Android) by introducing a custom JS library Add U2F error handling Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add U2F login page to OAuth Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move U2F user settings to a separate file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for u2f model Renamed u2f table name Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by refactoring Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add U2F documentation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove not needed console.log-s Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add default values to app.ini.sample Add FIDO U2F to comparison Signed-off-by: Jonas Franz <info@jonasfranz.software>
* fix links to prevent 404 after e.g. submitting a faulty form (#3982)David Schneiderbauer2018-05-194-12/+12
|
* add missing token validation and fix missing alert on application settings ↵David Schneiderbauer2018-05-161-0/+1
| | | | page (#3976)
* add user language value to hidden input to enable saving of profile without ↵David Schneiderbauer2018-05-151-1/+1
| | | | changing language (#3967)
* Refactor User Settings (#3900)David Schneiderbauer2018-05-1517-420/+336
| | | | | | | | | | | | | | | | | | | | | | * moved avatar to profile page * combined password change, email and account deletion into account settings page * combined totp, access tokens, linked accounts and openid into security settings page * move access tokens to applications settings page * small change to restart drone build * fix change avatar url on profile page * redirect old settings urls to new ones * enforce only one autofocus attribute on settings pages * set correct redirect status code * fmt fix
* Added user language setting (#3875)kolaente2018-05-051-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added user language setting * Added translation string for setting * Fixed import order + typo * improved checking if the user has a language saved in the db * The current saved language is now set a default inside the dropdown * fmt * When a user signs in and doesn't have a language saved, the current browser language is saved * updated gitea-sdk * Merge branch 'master' of https://github.com/go-gitea/gitea into save-user-language # Conflicts: # models/migrations/migrations.go # models/migrations/v62.go * Made tests work again * trigger CI * trigger CI * fmt * re-trigger that FUCKING CI SO IT REALLY PICKS UP THE LATEST COMMIT ISTEAD OF PREDENDING TO DO SO * re-trigger that FUCKING CI SO IT REALLY PICKS UP THE LATEST COMMIT ISTEAD OF PREDENDING TO DO SO * When loggin in, only the language col gets updated instead of everything
* Make Generate New Token panel shown by default (#3832)Morgan Bazalgette2018-04-291-21/+15
| | | | | | This is mostly a 'feel' change. The behaviour that is currently on the access tokens pages is, as far as I know, not present in any other parts of the frontend, and there's no real good reason to keep the 'Generate New Token' panel hidden by default in my opinion.
* Don't warn users about *every* dirty form (#3707)Gerben2018-03-232-2/+2
| | | | | | | | | | | The choice regarding which forms should or should not trigger a warning is subjective. I tried to be consistent and not warn about forms that: - run an action, rather than edit data: search, send an email. - delete data: a warning about losing data would be confusing Note that forms on sign-in pages were already ignored (using a selector, rather than an explicit class on the form element). Fixes #3698.
* fix gpg expired bug when time is zero (#3584)Lunny Xiao2018-02-261-1/+1
|
* Use correct transaltion key for delete email button (#3422)Lauris BH2018-01-301-20/+20
|
* Fixed missing end tag for organization link (#3229)Chris Woodward2017-12-191-0/+1
|
* fix gpg tmpl (#3153)Lunny Xiao2017-12-111-1/+1
|
* Refactor struct's time to remove unnecessary memory usage (#3142)Lunny Xiao2017-12-113-4/+4
| | | | | | | | | | | | | | * refactor struct's time to remove unnecessary memory usage * use AsTimePtr simple code * fix tests * fix time compare * fix template on gpg * use AddDuration instead of Add
* Spaces to tabs in templates (#2953)Ethan Koenig2017-11-213-123/+123
|
* Disable add key button if SSH is disabled (#2873)Michael Kuhn2017-11-211-0/+4
|
* Fix inconsistencies in user settings ui (#2901)Shaun2017-11-132-6/+6
|
* Merge password and 2fa page on user settings (#2695)Lunny Xiao2017-10-163-46/+81
| | | * merge password and 2fa page on user settings
* Implementation of all repositories of a user from user->settings (#1740)Rémy Boulanouar2017-09-142-0/+55
| | | | | | | | | | | | * Implementation of all repositories of a user from user->settings * Update message when no repository found * Update according to comments * Change UI to have a better look * improved user repositories UI
* Fix wording (#2024)Patrick G2017-06-241-1/+1
| | | | | | | | * Fix wording * Update locale_en-US.ini * Update keys_gpg.tmpl
* Display all organization from user settings (#1739)Rémy Boulanouar2017-06-022-0/+38
| | | | | | | | | | | | | | * Display all organization from user settings * fix Tab selection * Update locale_en-US.ini * Add a condition for display Create organization button * Remove french translation * Remove unnecessary admin flag
* Handle display of GPG key without end date (#1628)Antoine GIRARD2017-04-281-2/+2
|
* fix #1521 (#1621)Lunny Xiao2017-04-271-1/+1
|
* Rework SSH key management UI to add GPG (#1293)Antoine GIRARD2017-04-265-76/+148
| | | | | | | | | | | | | | | | | | | | | | | * Rework SSH key management UI to add GPG * Add more detail to gpg key display * Update CHANGELOG.md * Implement deletion UI * Implement adding gpg UI * Various fixes - Fix duplicate entry in locale - Re-generate hash before verification since they are consumed * Add missing translation * Split template * Catch not found/verified email error
* Simplify settings pages with item list (#1389)Antoine GIRARD2017-03-305-67/+57
| | | | | | | | | | * Remove point column on ssh key setting page * Remove un-used css * Some cleaning * Use octicon-key
* Show user OpenID URIs in their profile (#1314)Sandro Santilli2017-03-201-0/+18
|
* Fix inconsistency in layout (#1316)Patrick G2017-03-181-36/+32
|
* Login via OpenID-2.0 (#618)Sandro Santilli2017-03-172-1/+63
|
* Cleaner ui for admin, repo settings, and user settings page (#1269) (#1270)Patrick G2017-03-1511-417/+374
|
* Rename /forget_password url to /forgot_passwordSandro Santilli2017-03-142-2/+2
| | | | | | | | | Also renames `forgot_password` translation key to `forgot_password_title` and `forget_password` to `forgot_password` Includes entry in CHANGELOG about the breaking change (and some markdown fixes in there)
* Show a link to password reset from password change and delete account (#862)Sandro Santilli2017-03-112-0/+4
| | | | | | | It's helpful when you forgot your password thus cannot change it (can happen if you log in via OAuth2 or OpenID) Also make sure that both the delete-account and password-change links to forgot-password will have the primary email pre-filled
* Oauth2 consumer (#679)Willem van Dreumel2017-02-223-1/+54
| | | | | | | | | | | | | | | | | | | | | | | | | * initial stuff for oauth2 login, fails on: * login button on the signIn page to start the OAuth2 flow and a callback for each provider Only GitHub is implemented for now * show login button only when the OAuth2 consumer is configured (and activated) * create macaron group for oauth2 urls * prevent net/http in modules (other then oauth2) * use a new data sessions oauth2 folder for storing the oauth2 session data * add missing 2FA when this is enabled on the user * add password option for OAuth2 user , for use with git over http and login to the GUI * add tip for registering a GitHub OAuth application * at startup of Gitea register all configured providers and also on adding/deleting of new providers * custom handling of errors in oauth2 request init + show better tip * add ExternalLoginUser model and migration script to add it to database * link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed * remove the linked external account from the user his settings * if user is unknown we allow him to register a new account or link it to some existing account * sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers) * from gorilla/sessions docs: "Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!" (we're using gorilla/sessions for storing oauth2 sessions) * use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
* feat: fill in ssh key title automatically. (#863)Bo-Yi Wu2017-02-091-2/+2
|
* Two factor authentication support (#630)Andrew2017-01-163-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | * Initial commit for 2FA support Signed-off-by: Andrew <write@imaginarycode.com> * Add vendored files * Add missing depends * A few clean ups * Added improvements, proper encryption * Better encryption key * Simplify "key" generation * Make 2FA enrollment page more robust * Fix typo * Rename twofa/2FA to TwoFactor * UNIQUE INDEX -> UNIQUE
* Add Keep email private (see issue #571). (#571)derSuessmann2017-01-081-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Add site-wide option DEFAULT_KEEP_EMAIL_PRIVATE. - Add the new option to the install and admin/config pages. - Add the new option to app.ini in the service section. - Add the new option to the settings struct. - Add English text strings to i18n. - Add field KeepEmailPrivate to user struct. - Add field KeepEmailPrivate to user form. - Add option to UI. - Add using noreply email address if user has "Keep Email Private". An email address <LowerName>@<NO_REPLY_ADDRESS> is now used in commit messages (and hopefully all other git log relevant places). The change relies on the fact that git commands should use user.NetGitSig(). - Add hiding of email address in UI, if user has set "Keep Email Private". - Add condition to show email address only on explore/users and user pages, if user has not set "Keep Email Private". - Add noreply email in API if set "Keep Email Private". - Add a new service setting NO_REPLY_ADDRESS. The value of this setting is used as the domain part for the user's email address in git log, iff he decides to keep his email address private. If the user decides to keep his email address private and this option is not set 'noreply.example.org' is used, which no MTA should send email to. Add NO_REPLY_ADDRESS to conf/app.ini.
* Fixes xss, clickjacking & password autocompletionBwko2016-11-291-4/+4
|
* #3320 code cleanupUnknwon2016-08-071-2/+2
|
* Add support for federated avatars (#3320)Sandro Santilli2016-08-073-26/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for federated avatars Fixes #3105 Removes avatar fetching duplication code Adds an "Enable Federated Avatar" checkbox in user settings (defaults to unchecked) Moves avatar settings all in the same form, making local and remote avatars mutually exclusive Renames UploadAvatarForm to AvatarForm as it's not anymore only for uploading * Run gofmt on all modified files * Move Avatar form in its own page * Add go-libravatar dependency to vendor/ dir Hopefully helps with accepting the contribution. See also #3214 * Revert "Add go-libravatar dependency to vendor/ dir" This reverts commit a8cb93ae640bbb90f7d25012fc257bda9fae9b82. * Make federated avatar setting a global configuration Removes the per-user setting * Move avatar handling back to base tool, disable federated avatar in offline mode * Format, handle error * Properly set fallback host * Use unsupported github.com mirror for importing go-libravatar * Remove comment showing life exists outside of github.com ... pity, but contribution would not be accepted otherwise * Use Combo for Get and Post methods over /avatar * FEDERATED_AVATAR -> ENABLE_FEDERATED_AVATAR * Fix persistance of federated avatar lookup checkbox at install time * Federated Avatars -> Enable Federated Avatars * Use len(string) == 0 instead of string == "" * Move import line where it belong See https://github.com/Unknwon/go-code-convention/blob/master/en-US/import_packages.md Pity the import url is still the unofficial one, but oh well... * Save a line (and waste much more expensive time) * Remove redundant parens * Remove an empty line * Remove empty lines * Reorder lines to make diff smaller * Remove another newline Unknwon review got me start a fight against newlines * Move DISABLE_GRAVATAR and ENABLE_FEDERATED_AVATAR after OFFLINE_MODE On re-reading the diff I figured what Unknwon meant here: https://github.com/gogits/gogs/pull/3320/files#r73741106 * Remove newlines that weren't there before my intervention
* #1157 some avatar setting changesUnknwon2016-03-051-2/+2
| | | | - Allow to delete current avatar
* #2154 disable change user for non-local usersUnknwon2015-12-111-2/+7
| | | | - #2153 remove require for gravatar
* #1938 #1374 disable password change for non-local usersUnknwon2015-12-111-0/+6
|
* Indent all templates with tabsAdam Strzelecki2015-12-087-369/+369
| | | | | | | | | | | | This commit improves templates readability, since all of them use consistent indent with all template command blocks indented too. 1. Indents both HTML containers such as <div>, <p> and Go HTML template blocks such as {{if}} {{with}} 2. Cleans all trailing white-space 3. Adds trailing last line-break to each file
* fix #2101Unknwon2015-12-041-4/+0
|
* drop oauth2 feature supportUnknwon2015-09-173-54/+0
|
* finish all new user settings UIUnknwon2015-09-103-94/+103
|
* new user profile settings UIUnknwon2015-09-062-89/+72
| | | | Signed-off-by: Unknwon <u@gogs.io>
* finish new org settings pageUnknwon2015-09-061-12/+3
|
* add webhook recent deliveriesUnknwon2015-08-272-2/+2
|
* add confirmation to delete ssh keyUnknwon2015-08-202-58/+89
|
* token recent activityUnknwon2015-08-191-1/+1
|
* fix access token styleUnknwon2015-08-181-1/+1
|