summaryrefslogtreecommitdiffstats
path: root/routers/user
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* bug fixed on issues and pullsLunny Xiao2017-02-151-8/+21
|
* Fix assigned issues dashboard (#920)Lunny Xiao2017-02-141-63/+109
| | | | | | | | | | | | | | | | | | | | | | * Fix assigned/created issues in dashboard. (#3560) * Fix assigned/created issues in dashboard. * Use GetUserIssueStats for getting all Dashboard stats. * Use gofmt to format the file properly. * Replace &Issue{} with new(Issue). * Check if user has access to given repository. * Remove unnecessary filtering of issues. * Return 404 error if invalid repository is given. * Use correct number of issues in paginater. * fix issues on dashboard
* feat: support search bar on star tab of user profile. (#917)Bo-Yi Wu2017-02-141-55/+66
| | | | | | | | | | | | | | * feat: support search bar on star tab of user profile. * fix: update testing. * fix: Using loadAttributes * fix: remove empty line. * remove LOWER Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix: trim the whitespaces for the search keyword (#893)Bo-Yi Wu2017-02-112-2/+2
|
* fix: Admin can also search private user repository. (#869)Bo-Yi Wu2017-02-081-10/+10
|
* feat: support paginater on star tab of user profile. (#845)Bo-Yi Wu2017-02-071-2/+17
|
* fix: wrong pages number which includes private repository count. (#844)Bo-Yi Wu2017-02-061-2/+15
|
* Add units concept for modulable functions of a repository (#742)Lunny Xiao2017-02-041-1/+1
| | | | | | | | | | | | | | | | * Add units concept for modulable functions of a repository * remove unused comment codes & fix lints and tests * remove unused comment codes * use struct config instead of map * fix lint * rm wrong files * fix tests
* feat: Add search bar on user profile page. (#787)Bo-Yi Wu2017-02-042-6/+60
|
* Cache ctxUser in retrieveFeeds(..) (#826)Ethan Koenig2017-02-031-1/+3
|