2
0
Commit Graph

148 Commits

Author SHA1 Message Date
Sandro Santilli
fefdd3bbaf More... 2016-11-07 17:30:04 +01:00
Rémy Boulanouar
61ec6729e6 Change import reference to match gitea instead of gogs (#37) 2016-11-03 10:29:56 -02:00
Unknwon
d7cd5f6363 models/login_source: code improvement 2016-08-31 01:22:41 -07:00
Unknwon
d2fc115de3 #3515 use alert instead 500 for duplicated login source name 2016-08-31 00:56:10 -07:00
Thibault Meyer
8467154168 Fix typo CacheInternal -> CacheInterval (#3432) 2016-08-11 05:59:11 -07:00
Unknwon
c94b4f69fc #3091 show Git configs on admin panel 2016-08-10 11:01:42 -07:00
Sandro Santilli
82d2c65308 Add support for federated avatars (#3320)
* 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
2016-08-07 10:27:38 -07:00
Unknwon
48b0d21673 Refactor User.Id to User.ID 2016-07-24 01:08:22 +08:00
Unknwon
11e7ac2a93 Use struct for UI settings 2016-07-24 00:23:54 +08:00
Unknwon
27778760b9 #2937 able to prohibit user login 2016-07-16 10:22:16 +08:00
Unknwon
dcb0a41e41 #2854 fix no mail notification when issue is closed/reopened 2016-07-16 00:36:39 +08:00
Unknwon
da9ed19994 Use SecurityProtocol to replace UseSSL in LDAP config
Initially proposed by #2376 and fixes #3068 as well.
2016-07-08 07:25:09 +08:00
Unknwon
d3bbce09fb #13 fix admin can't search private repos
- update glide info
2016-03-15 14:23:12 -04:00
Unknwon
e84cef16cf #13 finish user and repository search
Both are possible on explore and admin panel
2016-03-11 15:33:12 -05:00
Unknwon
529f8d9b4b Rename module: middleware -> context 2016-03-11 11:56:52 -05:00
Unknwon
68f78d79ef #1146 finsih UI work for access mode of collaborators
Collaborators have write access as default, and can be changed via repository
collaboration settings page to change between read, write and admin.
2016-03-05 18:08:42 -05:00
Unknwon
8fbb98b3ee #1891 attempt to fix expected invalid CSRF token
- Remove unused config settings `[picture] service`
2016-03-03 15:09:43 -05:00
Unknwon
4a378f95f8 Post work for #2637
Improve test cases, config settings, also show SSH config settings on admin config panel.
2016-02-27 20:48:39 -05:00
Unknwon
8015d40786 Minor fix for #2660 2016-02-24 23:59:17 -05:00
Josh Frye
4e4d720851 Test mailer button. Addresses #1531 2016-02-24 09:48:05 -05:00
Unknwon
fce86b3da1 Move cron module to independent package
Make it easier to keep track of upstream changes and bug fixes
2016-02-20 15:58:09 -05:00
Adam Strzelecki
b4bd486184 LDAP: Fetch attributes in Bind DN context option
This is feature is workaround for #2628 (JumpCloud) and some other services
that allow LDAP search only under BindDN user account, but not allow any LDAP
search query in logged user DN context.

Such approach is an alternative to minimal permissions security pattern for
BindDN user.
2016-02-20 14:12:32 +01:00
Unknwon
7ba66bb20b #2554 reinitialize all repos from the db
- Update locales
2016-02-04 12:51:00 -05:00
Unknwon
4d4e36aaa9 #1938 #1374 disable password change for non-local users 2015-12-10 19:02:57 -05:00
Unknwon
74ceced0e8 #1575 Limit repo creation 2015-12-10 12:37:53 -05:00
Unknwon
64cf523389 remember page number when delete repo 2015-12-05 17:49:46 -05:00
Unknwon
ab04be1647 #2063 Ability to delete repo from admin panel 2015-12-05 17:39:29 -05:00
Unknwon
a3ea3c3bb9 APIs: admin users 2015-12-05 17:13:13 -05:00
Unknwon
9f75c6ce3d #2052 advanced select ops for system notices 2015-12-05 01:09:14 -05:00
Unknwon
2003d25c5f #2052 Ability to batch delete system notices 2015-12-01 23:33:08 -05:00
Adam Strzelecki
8d0ee10100 LDAP: Optional user name attribute specification
Consider following LDAP search query example:

    (&(objectClass=Person)(|(uid=%s)(mail=%s)))

Right now on first login attempt Gogs will use the text supplied on login form
as the newly created user name. In example query above the text matches against
both e-mail or user name. So if user puts the e-mail then the new Gogs user
name will be e-mail which may be undesired.

Using optional user name attribute setting we can explicitly say we want Gogs
user name to be certain LDAP attribute eg. `uid`, so even user will use e-mail
to login 1st time, the new account will receive correct user name.
2015-12-02 00:20:14 +01:00
Unknwon
8bffdd6c0b add admin op: delete missing repos 2015-11-18 15:37:48 -05:00
Unknwon
aae491523c fix #1930 2015-11-12 12:32:40 -05:00
Unknwon
efd1b30453 #1511 Allow local import only for admin users 2015-11-03 18:40:52 -05:00
Unknwon
677970b18e fix import path, fix #1782 2015-10-15 21:28:12 -04:00
Unknwon
41a27b7e75 #1525 Triggere mailer for admin created accounts 2015-09-25 19:45:44 -04:00
Unknwon
9ecf211b0c #1693 minor fix 2015-09-25 19:07:21 -04:00
无闻
dd34da15d1 Merge pull request #1693 from sapk/fix-admin-repo-new-ui
Fix admin repos new ui
2015-09-25 19:05:27 -04:00
无闻
32020d6f85 Merge pull request #1691 from sapk/fix-admin-organization-new-ui
Fix admin organization new ui
2015-09-25 19:03:53 -04:00
Antoine GIRARD
ae2a9e0aae Fix admin repos new ui 2015-09-26 00:38:43 +02:00
Antoine GIRARD
f3f8cca879 Fix indent in notice router 2015-09-25 19:56:23 +02:00
Antoine GIRARD
24d3309ae5 New admin organization UI 2015-09-25 19:54:52 +02:00
Unknwon
6145f88a58 #1689 minor fixes and update locale 2015-09-25 12:58:39 -04:00
Antoine GIRARD
6330052d00 Fix indent 2015-09-25 18:39:31 +02:00
Antoine GIRARD
476bbbc610 New admin notice UI based on user list example 2015-09-25 18:13:38 +02:00
Unknwon
6fa54b35e4 drop oauth2 feature support 2015-09-17 16:11:44 -04:00
Unknwon
6bf4dbca56 #1637 able to skip verify for LDAP 2015-09-14 15:48:51 -04:00
Unknwon
52efd51fd2 #1633 admin delete user 2015-09-13 13:26:20 -04:00
Unknwon
76b091554f fix #1632 and #1606 2015-09-13 11:26:25 -04:00
Unknwon
0d977db881 #697 and #1606 and new admin edit user UI 2015-09-13 11:07:21 -04:00