Rémy Coutable
b3635ee46a
Re-add EmailValidator to avoid the repetition of format: { with: Devise.email_regexp }
2016-02-09 18:15:35 +01:00
Rémy Coutable
b34963bc12
Validate email addresses using Devise.email_regexp
...
Also:
- Get rid of legacy :strict_mode
- Get rid of custom :email validator
- Add some shared examples to spec emails validation
2016-02-09 18:15:35 +01:00
Douwe Maan
f86ff1b833
Merge branch 'fix/max-attachment-size-setting-validation'
2016-02-09 16:52:20 +01:00
Jason Lee and Rémy Coutable
9474e36f46
Add option to include the sender name in body of Notify email. fix #7824
2016-02-09 12:58:13 +01:00
Grzegorz Bizon
1cbc75b53c
Validate maximum attachment size in application settings
...
`max_attachment_size` in `ApplicationSetting` should be present,
only integers greater than zero are valid.
Closes #13188
2016-02-09 12:11:16 +01:00
Stan Hu and Douglas Barbosa Alexandre
d20e75a8d8
Support Akismet spam checking for creation of issues via API
...
Currently any spam detected by Akismet by non-members via API will be logged
in a separate table in the admin page.
Closes #5612
2016-02-02 11:25:44 -02:00
Robert Speicher
ca05054ea2
Partially revert "Add IP check against DNSBLs at account sign-up"
...
This partially reverts 6a5cd3ca - we keep the migration and add a new
migration that reverts it in order to keep migration history intact.
2016-01-28 16:28:19 -05:00
Robert Speicher
1553c560e0
Merge branch 'feature/check-against-rbl-only' into 'master'
...
Split from !2455
References #9092
See merge request !2515
2016-01-20 14:24:20 -05:00
Tomasz Maczukin
8536e083f7
Add IP blocking against DNSBL at sign-up
2016-01-20 15:28:19 +01:00
Jeroen Nijhof
85e0fce9ee
Add sentry integration
2016-01-18 17:15:10 +01:00
Stan Hu
79c0e7212a
Annotate models
2016-01-06 13:09:55 +00:00
Gabriel Mazetto
a3469d914a
reCAPTCHA is configurable through Admin Settings, no reload needed.
2015-12-28 18:50:29 -02:00
Gabriel Mazetto
33964469b3
WIP require two factor authentication
2015-12-24 19:00:18 -02:00
Grzegorz Bizon
3e6950481a
Use method that creates runners registration token
...
`runners_registration_token` now creates a new token if it is blank.
2015-12-23 11:45:17 +01:00
Gabriel Mazetto
b5291f9599
Fixed Rubocop offenses
2015-12-15 00:53:52 -02:00
Grzegorz Bizon
5a7b94f6d1
Ensure that app settings contains runners registration token
2015-12-11 10:39:39 +01:00
Grzegorz Bizon
9948e5bcdd
Refactor TokenAuthenticatable to improve reusability
...
This adds a ability to use multiple different authentication token
fields in other models. From now on it is necessary to add
authentication token field manually in each class that implements this
mixin.
2015-12-11 10:39:39 +01:00
Grzegorz Bizon
4a32b07d9e
Add runners_registration_token to ApplicationSettings
2015-12-11 10:39:39 +01:00
Robert Speicher
d5ea93469b
Add custom UrlValidator
2015-12-07 16:57:26 -05:00
Stan Hu
32b45493b8
Fix application settings cache not expiring after changes
...
cache_key is an instance method that relies on updated_at. When changes
were made, the time-dependent key was being used instead of X.application_setting.last.
Closes #3609
2015-12-04 07:11:25 -08:00
Stan Hu
e55473ad68
Expire application settings from cache at startup
...
If a DB migration occurs, there's a chance that the application settings are
loaded from the cache and provide stale values, causing Error 500s.
This ensures that at startup the settings are always refreshed.
Closes #3643
2015-11-25 11:30:33 -08:00
Kamil Trzcinski
11728b50f9
Expose artifacts path
2015-11-23 13:05:22 +01:00
Dmitriy Zaporozhets
a237999f00
Annotate models
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-11-13 19:22:46 +01:00
Dmitriy Zaporozhets
37465f44b4
Merge pull request #9825 from huacnlee/cache-application-setting
...
Add caching for ApplicationSetting, Ci::ApplicationSetting.
2015-11-13 10:15:52 +01:00
Jason Lee
2e4a673cbc
Add caching for ApplicationSetting, Ci::ApplicationSetting.
...
ApplicationSetting.current was called in every pages, cache it and expires it after it updated.
This changes will avoid a SQL query in every pages (~0.3 - 0.5ms).
```SQL
SELECT "application_settings".* FROM "application_settings" ORDER BY "application_settings"."id" DESC LIMIT 1
```
2015-11-12 17:19:03 +08:00
Kamil Trzcinski
d0e3e823a2
Implement Build Artifacts
...
- Offloads uploading to GitLab Workhorse
- Use /authorize request for fast uploading
- Added backup recipes for artifacts
- Support download acceleration using X-Sendfile
2015-11-10 12:51:50 +01:00
Kamil Trzcinski
b18671a1b2
Enable shared runners for all new projects
2015-11-05 17:02:02 +01:00
Douwe Maan
551512b147
Validate admin notification email.
2015-10-18 11:58:59 +02:00
Robert Speicher
fc59c45d58
Remove the option to disable CI
...
This option only existed to ease the CI-to-CE/EE migration process.
This commit partially reverts 8b05abe816
2015-10-05 12:23:38 -04:00
Kamil Trzcinski
e41a29b0c3
Allow to disable GitLab CI
2015-09-18 12:46:47 +02:00
Jared Szechy
e156f42079
FogBugz project import
2015-09-08 20:23:01 -04:00
Artem Sidorenko
55dca86b98
Import sources: settings in the admin interface
2015-08-20 11:28:27 +02:00
Atsushi Ishida
f33898ecfb
Re-annotate models
2015-08-03 01:52:54 +09:00
Robert Speicher
567a25b630
Ensure session_expire_delay field exists before accessing it
...
Closes #1798
2015-06-13 00:31:08 -04:00
themaze75 and Eric Maziade
1d080f5745
session_expire_seconds => session_expire_delay
...
delay is in seconds
more legible code in session_store
Added `GitLab restart required` help block to session_expire_delay
2015-06-10 22:10:00 -04:00
Eric Maziade
84a414fe53
Add session expiration delay configuration through UI application
...
settings
2015-06-05 11:50:37 -04:00
Alex Lossent
60225a067d
Allow to configure a URL to show after sign out
2015-05-29 18:20:15 +02:00
Douwe Maan
96d6fdc27c
Add option to disallow users from registering any application to use GitLab as an OAuth provider
2015-05-29 13:29:16 +02:00
Stan Hu
a3157626f1
Re-annotate models
2015-05-03 13:38:27 -07:00
Stan Hu
eb4f1eb5f5
Add application setting to restrict user signups to e-mail domains
...
This feature was requested long ago:
http://feedback.gitlab.com/forums/176466-general/suggestions/4118466-ability-to-register-only-from-ceratain-domains
This MR is based off !253 but changed to use application settings and use wildcard strings
to give more flexibility in pattern matching. Regexps seemed overkill and easy to get wrong.
Only restrict e-mail addresses upon creation
2015-05-02 09:36:52 -07:00
Vinnie Okada
bd557e4b64
Add new admin settings
...
Add new global application settings for default project and snippet
visibility levels.
2015-04-26 07:48:19 -06:00
Douwe Maan
9e52a2dcab
Don't use URI.regexp to validate since it doens't have start/end anchors.
2015-04-11 11:38:14 +02:00
Stan Hu
dfd256f29e
Support configurable attachment size via Application Settings
...
Fix bug where error messages from Dropzone would not be displayed on the issues page
Closes #1258
2015-04-02 00:04:08 -07:00
Vinnie Okada
2e672c39a0
Fix restricted visibility bugs
...
Check for nil values in the restricted_visibility_level validation
method, and set the restricted visibility request parameter to `[]` when
it's missing from the request.
2015-03-16 13:59:50 -06:00
Vinnie Okada
cacac147de
Move restricted visibility settings to the UI
...
Add checkboxes to the application settings page for restricted
visibility levels, and remove those settings from gitlab.yml.
2015-03-07 13:11:08 -07:00
Dmitriy Zaporozhets
66c61f023b
Re-annotate models
2015-03-04 14:14:00 -08:00
Douwe Maan
ce08f919bf
Add link to share via twitter to "created project" event.
2015-02-13 12:07:59 +01:00
Dmitriy Zaporozhets
635ebac606
Merge branch 'master' into mwessel/gitlab-ce-configure-protection
2015-02-03 17:54:33 -08:00
Dmitriy Zaporozhets
cc39bca3fa
Rubocop: Style/AlignHash enabled
2015-02-02 21:15:44 -08:00
Marco Wessel
aad6ceaef9
Allow configuring protection of the default branch upon first push
2015-01-25 17:09:10 +01:00