Commit graph

73 commits

Author SHA1 Message Date
Ari Timonen
703f4c83d2 Fix error in user.rb preformat 2020-04-18 08:01:32 +03:00
Ari Timonen
1c59cac569 Set email on empty 2020-04-14 01:47:02 +03:00
Ari Timonen
e1747cac83 Fix steam registering
- Allow updating SteamID of previous profile easily via steam login
- Fix bug with empty profile
- Redirect on login error on steam id update
- Fix styles and spacing in register form
2020-04-14 01:47:02 +03:00
Absurdon
8d16792bd5 FIX User#send_new_password
* add to_i to password length as nil.to_i == 0 but nil > 0 throws error
2020-04-13 16:01:48 +00:00
Absurdon
6f05d47a8d FIX
in User#authenticate:
* make search by username case sensitive as in prod there already are
  usernames diffing only in case
* use guard clause instead of nesting
2020-04-13 15:34:12 +00:00
Ari Timonen
752073b1eb Add steam login password message 2020-04-10 20:46:52 +03:00
Ari Timonen
f29eb22aa9 Add WIP login via Steam + omniauth 2020-04-10 18:32:18 +03:00
Ari Timonen
2297e8c4d1 Allow manual password hash MD5 for testing 2020-04-06 23:41:42 +03:00
Ari Timonen
0ec3da7bf6 Add .env to repo
Add template handling for password failure
2020-04-06 05:19:39 +03:00
Ari Timonen
3a4aa11d84 Add scrypt 2020-04-02 03:08:19 +03:00
Ari Timonen
bb49ab765f Annotations 2020-03-31 20:27:34 +03:00
Ari Timonen
2627e43e26 Fix random things
Add users to adminpanel, cleanup routes, remove byebugs
2020-03-30 02:17:34 +03:00
Ari Timonen
f6b30be278 Improve contest page and match list for maps
Improve brackets
Update gitignore and docs.
2020-03-28 22:39:41 +02:00
Ari Timonen
6c3648cafe Fix user.rb, applicaiton.rb and routes.rb 2020-03-26 20:50:45 +02:00
Ari Timonen
fa7c32c507 Belongs_to has optional true 2020-03-26 04:26:30 +02:00
Ari Timonen
d3ef9db9e9 Fix team validation 2020-03-26 03:52:13 +02:00
Ari Timonen
0b033be5ca Fix more tests related to time 2020-03-25 03:13:38 +02:00
Ari Timonen
b15e1f888c Fix more conditions and tests 2020-03-23 04:22:12 +02:00
Ari Timonen
85d96b3388 Update and fix specs 2020-03-23 04:10:31 +02:00
Ari Timonen
a41b28ae23 Update uers_contoller and add almost working spec. 2020-03-21 22:33:44 +02:00
Ari Timonen
5a2324166e Fix steamid validation 2020-03-18 23:36:21 +02:00
Ari Timonen
c9b7036047 Fix params + steamid bug 2020-03-18 23:23:30 +02:00
Ari Timonen
f51af16ca2 User profile param fix 2020-03-18 22:03:56 +02:00
Ari Timonen
25761db2f3 Fix user params 2020-03-18 21:48:08 +02:00
Ari Timonen
e59e8ac8e7 Lots of rails 4 updates
- Add .params to models and update controllers
- Add afk time to gather
- Reannotate models
- Fix rspec problem by using latest rspec plugins from github
2020-03-18 05:38:17 +02:00
Ari Timonen
76faa4d18c Fix articles and the tests
Fix user password
Add errors to production only
Improve tests
2020-03-17 21:31:57 +02:00
Ari Timonen
fa4fbb589d Change before_filter and remove attr_protected 2020-03-17 01:57:47 +02:00
Ari Timonen
9952bf52b5 Fix country for undefined 2020-03-16 03:12:22 +02:00
Ari Timonen
4a2b4d6c71 Fix rails4 stuff 2020-03-15 22:59:08 +02:00
Ari Timonen
322001f8d3 Rails 4 fixes
Update to ruby 2.3.8
Update gems
Fix tests
2020-03-15 20:31:46 +02:00
Ari Timonen
bdbdef1635 Update to FactoryBot and fix admin panel spec 2020-03-15 15:33:58 +02:00
Ari Timonen
2c71b1147d Merge rails-4 to rails4 2020-03-14 21:10:24 +02:00
Absurdon
db9d4c1564
Added Contributor Group Treatment
* Logrotation for production
* added contributors class method to Group
* added contributor? method to User
* added contributor flag to User-API
* added Contributor-Tab to staff-page
2019-11-12 23:27:54 +01:00
Ari Timonen
fc94c8b8e7 Add some upgrades and pending upgrade 2019-10-10 22:12:17 +03:00
Ari Timonen
11fcea3259 Add docker dev version
Add env and docker files for development

Fix some random things related to rails upgrade
2019-09-24 22:55:34 +03:00
Ari Timonen
f156ed3060 More progress on upgrade 2019-06-07 11:04:16 -04:00
Ari Timonen
ce9797aed8 More progress on Rails 4.1 update
Just fix scopes mostly.

Add binstubs.
2019-06-03 15:38:24 -04:00
Ari Timonen
768d3faa1b Update scopes for rails 4 2019-06-02 04:26:36 +03:00
Ari Timonen
0b53968d3d Temporary commit 2019-06-01 13:56:09 +03:00
Absurdon
d601d8643f Fixing Tests 2017-12-06 22:20:55 +01:00
Absurdon
aef90cb0bf Users only get messages sent to their primary team and removed some duplicated methods in User model 2017-12-05 22:21:16 +01:00
Absurdon
fa27e9fae4 Merge branch 'master' into MatchScheduler 2017-08-30 20:14:10 +02:00
Absurdon
a43914e815 Migrated countries to use country_select gem and reworked how flags get displayed 2017-08-23 22:45:09 +02:00
Absurdon
9c9ae32a9c Merge branch 'master' into MatchScheduler 2017-07-07 16:05:02 +02:00
Absurdon
f06dfc025a show count for users signed in the last 30 days on users page 2017-07-02 17:14:07 +02:00
Absurdon
8579d0b569 gave gathermods the possibility to respond to gather issues 2017-06-24 20:43:42 +02:00
Absurdon
569122862f Gave Gathermods simple banning permissions 2017-03-06 02:33:12 +01:00
Absurdon
39758ff86c Gave Gathermods simple banning permissions 2017-03-06 02:33:12 +01:00
Chris Blanchard
95deb32e05 Added moderator group 2015-10-20 18:04:50 +01:00
Chris Blanchard
39ff2b66d8 Added moderator group 2015-10-20 18:04:50 +01:00