summaryrefslogtreecommitdiffstats
path: root/routers/user
Commit message (Collapse)AuthorAgeFilesLines
* remove unused variable (#3038)Lunny Xiao2017-11-301-1/+0
|
* Unit tests for wiki routers (#3022)Ethan Koenig2017-11-302-20/+3
|
* Disable add key button if SSH is disabled (#2873)Michael Kuhn2017-11-211-3/+6
|
* Apply LANDING_PAGE config options for logged in users (#2894)schaffman52017-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'. * Updated comments. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'. * Updated comments. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Removed superfluous conditional and correct whitespace. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Update app.ini Reverted new line. * Formatting. Signed-off-by: Mike Schaffer <mschaff@gmail.com>
* Add search mode option to /api/repo/search (#2756)Morlinest2017-10-271-15/+16
| | | | | | | | | | | | | | | | | | | | | | | | * Add repo type option to /api/repo/search * Add tests and fix result of collaborative filter in specific condition * Fix/optimize search & tests * Improve integration tests * Fix lint errors * Fix unit tests * Change and improve internal implementation of repo search * Use NonexistentID * Make search api more general * Change mirror and fork search behaviour * Fix tests & typo in comment
* Merge password and 2fa page on user settings (#2695)Lunny Xiao2017-10-161-37/+30
| | | * merge password and 2fa page on user settings
* Change default sort order (#2647)Kazuki Sawada2017-10-051-6/+1
| | | | | | | | | | | | * sort repositories by `updated_unix` in Explore * Fix UI problem * Added missing sort order "newest" * Change default sort order * fmt
* Use custom type and constants to hold order by options (#2572)Morlinest2017-09-221-10/+10
|
* Implementation of all repositories of a user from user->settings (#1740)Rémy Boulanouar2017-09-141-0/+35
| | | | | | | | | | | | * 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
* Only check at least one email gpg key (#2266)Antoine GIRARD2017-09-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | * Only require one email (possibly not yet validated) * Update message error and check validation of commit * Add integrations tests * Complete integration for import * Add pre-check/optimization * Add some test (not finished) * Finish * Fix fixtures * Fix typo * Don't guess key ID
* fix duplicated feed (#2370)Lunny Xiao2017-08-282-2/+0
|
* Fix missing collabrative repos (#2367)Lunny Xiao2017-08-241-7/+8
| | | | | | | | * fix missing collabrative repos * fix bug of collabrative * fix SQL quotes
* Log failed authentication attempts with remote address for fail2ban (#2334)David Schneiderbauer2017-08-241-0/+2
| | | Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Add collaborative repositories to the dashboard (#2205)Bwko2017-08-232-41/+16
| | | | | | | | | | * Add collaborative repositories to the dashboard Remove some unused code from the Dashboard func * fix some bug and some refactor * fix tests
* Add OpenID configuration in install page (#2276)Sandro Santilli2017-08-191-8/+1
|
* Add AppURL without trailing slash to TOTP issuer parameter to prevent ↵David Schneiderbauer2017-08-191-1/+1
| | | | | conflicting accounts on multiple gitea installations (#2335) Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Fix variable name typo (#2327)Morlinest2017-08-181-2/+2
|
* Make SHOW_USER_EMAIL also apply to profiles (#2258)Michael Kuhn2017-08-171-0/+2
| | | The e-mail address is currently only hidden from the explore page.
* Fix and improve dashboard repo UI (#2285)Morlinest2017-08-171-0/+1
| | | | | | | | | | | | | | | | * Fix and improve dashboard repo UI * Change order of scripts loading * Remove "mirror" tab * Remove single tab panel for "org user" * Add localization strings * Create vue component and change event for search * Add "mirrors" filter
* Only update needed columns when update user (#2296)Lunny Xiao2017-08-123-11/+14
| | | | | | * only update needed columns when update user * fix missing update_unix column
* Fix counts on issues dashboard (#2215)Ethan Koenig2017-08-033-57/+107
| | | | | | | | | | * Fix counts on issues dashboard * setupSess -> setupSession * Unit test * Load repo owners for issues
* Make time diff translatable (#2057)Lauris BH2017-06-283-7/+7
|
* Fix "Dashboard shows deleted comments" (#1995)Jonas Franz2017-06-252-3/+4
|
* Fix 500 in public activity page (#1901)Ethan Koenig2017-06-081-1/+5
|
* Cache ctx.User in retrieveFeeds (#1902)Ethan Koenig2017-06-081-0/+3
|
* feat: add check misspelling (#1877)Bo-Yi Wu2017-06-051-1/+1
|
* Display all organization from user settings (#1739)Rémy Boulanouar2017-06-021-0/+14
| | | | | | | | | | | | | | * 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
* Fix user profile activity feed (#1848)Ethan Koenig2017-06-022-13/+12
| | | | | | * Fix user profile activity feed * gofmt, and avoid overlapping database connections
* xxx_active_code_live setting in printed in hours and minutes instead … (#1814)Jonas Östanbäck2017-05-293-7/+7
| | | | | | * xxx_active_code_live setting in printed in hours and minutes instead of just hours * Update app.ini description of xxx_code_lives settings
* Fix activity feed (#1779)Ethan Koenig2017-05-261-8/+33
| | | | | | | | | | | | * Fix activity feed Preserve actions after user/repo name change * Add missing comment * Fix migration, and remove fields completely * Tests
* Add new text for reset password flash (#1718)Jonas Östanbäck2017-05-141-2/+2
| | | | | * 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-011-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
* Rework SSH key management UI to add GPG (#1293)Antoine GIRARD2017-04-261-40/+93
| | | | | | | | | | | | | | | | | | | | | | | * 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
* Orgs: fix org page title when full name is not defined (#1495)silverwind2017-04-151-1/+1
|
* Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION (#1369)Sandro Santilli2017-03-291-10/+10
| | | | | | | | | | | * Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION Omit the configuration variable (the default) to be dependent. Fixes #1363 * Move OpenID settings under Service object * Show OpenID SignUp and SignIn status in admin panel / configuration
* Reduce conditionals in signin/signup inner forms (#1138)Kim "BKC" Carlbäcker2017-03-221-4/+9
|\
| * Reduce conditionals in signin/signup inner formsSandro Santilli2017-03-201-4/+9
| | | | | | | | by always using SignInLink and SignUpLink in the form action
* | Run "make fmt" with go-1.6 (#1333)Sandro Santilli2017-03-212-33/+33
|/
* Show user OpenID URIs in their profile (#1314)Sandro Santilli2017-03-202-0/+24
|
* Add captcha support to OpenID based signupSandro Santilli2017-03-201-4/+5
|
* Login via OpenID-2.0 (#618)Sandro Santilli2017-03-173-1/+577
|
* Rename /forget_password url to /forgot_passwordSandro Santilli2017-03-141-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/+6
| | | | | | | 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
* Link OAuth2 account to 2FA enabled account (fix #1050) (#1052)Willem van Dreumel2017-02-271-2/+20
| | | | | | * fixes #1050 where linking an account to a 2fa enabled account failed because we forgot to really link the account when 2fa is completed * handle errors
* fix 500 when use a duplicat email instead of giving an error tip (#1040)Lunny Xiao2017-02-251-7/+9
|
* fix #13 (#1042)Lunny Xiao2017-02-251-1/+1
|
* fix 500 when change user setting email to an exist email (#1039)Lunny Xiao2017-02-251-0/+5
|
* Oauth2 consumer (#679)Willem van Dreumel2017-02-222-9/+395
| | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* Fix all the bugs in issues and pulls on dashboard (#943)Lunny Xiao2017-02-171-66/+32
| | | | | | | | * fix all the bugs in issues and pulls on dashboard * small fix and refactor * add method getRepoIDs for IssueList
* fix: 500 error on /explore/repos page. (#946)Bo-Yi Wu2017-02-151-6/+7
|