summaryrefslogtreecommitdiffstats
path: root/templates/user/auth
Commit message (Collapse)AuthorAgeFilesLines
* Add support for FIDO U2F (#3971)Jonas Franz2018-05-192-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Some small template fixes (#3820)Rodrigo Villablanca Vásquez2018-04-201-1/+2
|
* Don't warn users about *every* dirty form (#3707)Gerben2018-03-233-3/+3
| | | | | | | | | | | 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.
* Responsive view (#2750)Morgan Bazalgette2017-12-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Viewport meta tag * responsive: dashboard * responsive: issues page * responsive: Explore page * responsive: navbar, and some navbar css refactoring * responsive: button for collapsing navbar in mobile view * Mark the hamburger button as active when pressed * better homepage for responsive views * Bring back jump class in navbar The class was necessary, because this way the dropdown doesn't assume the contents of the selected item. * make repository homes responsive * Make file view page responsive * Make forms look good on responsive views * make commits and commit diff view responsive * issues and PRs * responsive wiki * Don't place auto-init far off the page * Minor changes to amend broken stuff minor improvements - make login/sign up in navbar stackable - make navbar in explore and sign in not stackable Change selected class in TestPullCompare Fix typo that happened when rebasing fix dashboard on org view improve profile UI Use clearing on file diff to fix broken UI caused by floating elements remove unresolved merge conflict, and | Sanitize Fix repo home not loading
* hide navbar when only 1 sign-in method is available (#2648)Kazuki Sawada2017-10-041-6/+6
|
* Center-aligned login topbar (#1880)Ethan Koenig2017-06-062-2/+2
| | | | | | * Center-aligned login topbar * Center-align OpenID login
* xxx_active_code_live setting in printed in hours and minutes instead … (#1814)Jonas Östanbäck2017-05-292-3/+3
| | | | | | * xxx_active_code_live setting in printed in hours and minutes instead of just hours * Update app.ini description of xxx_code_lives settings
* Change two factor code entry box from text to number (#1733)Patrick G2017-05-161-1/+1
|
* Add new text for reset password flash (#1718)Jonas Östanbäck2017-05-141-1/+1
| | | | | * Forgot password should use ResetPwdCodeLives, not ActiveCodeLives * Improve documentation for different send mail functions related to password reset * Improve documentation in conf/app.ini regarding xxx_CODE_LIVE_MINUTES settings
* Additional OAuth2 providers (#1010)Willem van Dreumel2017-05-012-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add google+ * sort signin oauth2 providers based on the name so order is always the same * update auth tip for google+ * add gitlab provider * add bitbucket provider (and some go fmt) * add twitter provider * add facebook provider * add dropbox provider * add openid connect provider incl. new format of tips section in "Add New Source" * lower the amount of disk storage for each session to prevent issues while building cross platform (and disk overflow) * imports according to goimport and code style * make it possible to set custom urls to gitlab and github provider (only these could have a different host) * split up oauth2 into multiple files * small typo in comment * fix indention * fix indentation * fix new line before external import * fix layout of signin part * update "broken" dependency
* Autofocus on 2fa passcode fields (#1460)Jonas2017-04-072-2/+2
| | | | | | * Autofocus on 2fa passcode field * Autofocus on 2fa scratch code field
* Changed text when password reset disabled. (#1364)Jonas2017-03-221-1/+1
| | | Fixes #1340
* Reduce conditionals in signin/signup inner formsSandro Santilli2017-03-202-3/+3
| | | | by always using SignInLink and SignUpLink in the form action
* Add captcha support to OpenID based signupSandro Santilli2017-03-201-0/+10
|
* Use readonly input form to show the validated OpenID URI (#1308)Sandro Santilli2017-03-202-12/+4
|
* Use font-awesome OpenID icon more (#1320)Sandro Santilli2017-03-192-3/+4
|
* Login via OpenID-2.0 (#618)Sandro Santilli2017-03-178-50/+233
|
* Rename /forget_password url to /forgot_passwordSandro Santilli2017-03-142-3/+3
| | | | | | | | | 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)
* Oauth2 consumer (#679)Willem van Dreumel2017-02-225-96/+131
| | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* social_register_hepler_msg -> social_register_helper_msg (#855)Sandro Santilli2017-02-071-1/+1
| | | | | | * social_register_hepler_msg -> social_register_helper_msg * register_hepler_msg -> register_helper_msg
* Two factor authentication support (#630)Andrew2017-01-162-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fixes xss, clickjacking & password autocompletionBwko2016-11-293-4/+4
|
* #2937 able to prohibit user loginUnknwon2016-07-161-0/+16
|
* Indent all templates with tabsAdam Strzelecki2015-12-085-182/+182
| | | | | | | | | | | | 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 #1697Unknwon2015-10-312-12/+0
|
* drop oauth2 feature supportUnknwon2015-09-171-10/+2
|
* finish new auth e-mailsUnknwon2015-09-175-68/+81
|
* user gomail and new activate account email tplUnknwon2015-09-171-22/+28
| | | | | | - #1496: fallback plain text - #1002: add date header - #913: fix encoding of header
* #1646 and other minor fixesUnknwon2015-09-161-1/+1
|
* new sign in pageUnknwon2015-09-142-43/+50
|
* #697 and #1606 and new admin edit user UIUnknwon2015-09-131-1/+1
|
* #697 disable captcha and new admin create user UIUnknwon2015-09-131-42/+49
|
* Match naming convention on page (checkbox→chk)Andrew Patton2015-04-151-1/+1
|
* Wrap remember text+checkbox in label; close #1209Andrew Patton2015-04-151-3/+4
|
* templates/user/auth/signin.tmpl: hide sign up prompt when registration is ↵Unknwon2015-02-121-0/+2
| | | | disabled #884
* mirror fix on oauth2Unknwon2014-11-281-3/+1
|
* Add suburl supportUnknwon2014-09-195-8/+8
|
* Allow Gogs to run from a suburl behind a reverse proxy. e.g. ↵Martin van Beurden2014-09-185-8/+8
| | | | | | | | | | | | | | http://mydomain.com/gogs/ Conflicts: modules/setting/setting.go Conflicts: templates/repo/release/list.tmpl templates/user/dashboard/dashboard.tmpl Conflicts: routers/repo/setting.go
* Removed trailing white spacesTristan Storch2014-08-303-3/+3
| | | | | | | | | | Removed trailing whitespaces with ```sh for file in `grep -r " $" * | cut -d : -f 1 | sort | uniq | grep -v " "`; do sed -i 's/[ \t]*$//' $file; done ``` and some handwork.
* Finish new admin users pagesUnknwon2014-08-291-1/+1
|
* Finish team list, create new team, join/leave team pageUnknwon2014-08-165-0/+189