Commit graph

153 commits

Author SHA1 Message Date
Georg Gadinger
29923fac84 add validator for typoed emails
It happens quite often that people typo their email address (I blame
phone keyboards for that).  Catch common cases in a validator and
tell the user that they have a typo in their email.

Why yes, I did write the tests for this first, thanks for asking!
2022-01-11 19:18:23 +01:00
Karina Kwiatek
b398265a98 Address review comments from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-01-06 13:59:04 +01:00
Karina Kwiatek
7677ed21a4 Update tests for unbanning users 2022-01-02 19:50:44 +01:00
Karina Kwiatek
a9392dad53 Use use case for User#unban 2022-01-02 19:50:44 +01:00
Karina Kwiatek
6500d7ac71 Update usages of bans 2022-01-02 19:50:44 +01:00
Karina Kwiatek
ea62d91014 Make ban UI more intuitive when a user is already banned 2022-01-02 19:50:02 +01:00
Karina Kwiatek
9a35584284 Refactor ban-related functionality into use cases 2022-01-02 19:50:01 +01:00
Karina Kwiatek
be0cf69368 Refactor existing ban-related methods 2022-01-02 19:50:01 +01:00
Karina Kwiatek
e4241d2001 Create user ban model
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-01-02 19:50:01 +01:00
Karina Kwiatek
18de468198 Add inverse relationship for mute rules <-> users 2022-01-01 00:38:38 +01:00
Karina Kwiatek
00496a1596 Update remaining references to profile fields 2021-12-22 00:03:19 +01:00
Karina Kwiatek
ff410773dd Create Profile model 2021-12-22 00:03:18 +01:00
Karina Kwiatek
7249e45989 Add tests for user_twitter_card and answer_opengraph 2021-08-06 21:38:51 +02:00
Dominik Kwiatek
aeb1396422 Add tests for recovery codes 2020-11-15 10:21:06 +01:00
Dominik Kwiatek
25410e111d Fix OTP auth triggering for users who haven't set it up
I thought I could be clever by using a null secret key as an indicator of it being disabled
2020-10-18 11:39:28 +02:00
Dominik Kwiatek
141ff59f63 Implement Two Factor Authentication 2020-10-18 10:39:46 +02:00
Georg Gadinger
ea0685136e Rename Groups to Lists
haha regexp go brrr

special thanks to @seatsea for helping me out with the French locales
2020-05-25 18:04:54 +02:00
Dominik M. Kwiatek
d4f8e03d28 Cropping in the background
With database fields, sadly.
2020-05-17 20:39:10 +01:00
Dominik M. Kwiatek
d185c54f03 Add CarrierWave Backgrounder 2020-05-17 20:38:40 +01:00
Karina Kwiatek
ff9741589d Implement cropping; make uploaders DRY 2020-05-17 20:38:40 +01:00
Karina Kwiatek
783e47fc2b Replace paperclip with CarrierWave 2020-05-17 20:38:40 +01:00
Georg Gadinger
aeef50ad78
Merge pull request #86 from Retrospring/cleanup
Minor Cleanup
2020-04-26 20:03:46 +02:00
Karina Kwiatek
3aa2e5899c Remove JoJoke 2020-04-22 15:51:45 +01:00
Georg Gadinger
101b3b68d3 Use cursored pagination, remove WillPaginate 2020-04-20 23:13:24 +02:00
Georg Gadinger
946bb3ae9d Use Rolify for admin and moderator roles 2020-04-19 22:35:58 +02:00
Georg Gadinger
3e7497a144 Upgrade to Rails 5 2020-04-19 00:59:22 +02:00
Georg G
39c79287e2 ing hell 2016-01-05 21:50:21 +01:00
Georg G
78b34ef6f9 c and k 2016-01-05 21:48:30 +01:00
Georg G
2ad1c4294d u 2016-01-05 21:38:36 +01:00
Georg G
2d20aa8dae f 2016-01-05 21:35:10 +01:00
Georg G
615d7152d2 fuck logic 2016-01-05 21:06:52 +01:00
Georg G
bf64a59649 added User#can_export? 2016-01-05 20:54:13 +01:00
Yuki
1912fc3766 Model goop
also made the theme selection logic for user profiles and current user, and the saving logic
2015-08-25 13:56:36 +05:30
pixeldesu
5366c3c748 add fake mail validation 2015-07-21 22:44:14 +02:00
pixeldesu
aabbd9fb8c add :confirmable to users + migration / letter_opener for local email confirmations 2015-07-21 17:55:28 +02:00
Yuki
94e2dbc5ad Only allow JPG, PNG and GIF for profile pictures, and only allow JPG and PNG for profile headers 2015-05-10 10:08:06 +05:30
Yuki
2e6ffdaab7 basic implementation 2015-05-08 21:14:16 +05:30
Georg G.
9b39491d88 Merge pull request #18 from skiprope/temp-bans
Support for ban reasons and ban times.
2015-05-05 16:54:23 +02:00
Yuki
2204227273 Feature-comment-smiles complete (fix Retrospring/bugs#42) 2015-05-04 07:09:47 +05:30
Yuki
1c80c70dd9 Derp x2 (Retrospring/bugs#41) 2015-04-30 05:52:24 +05:30
Yuki
832dc1c1e4 Report.user_id is dependent on :destroy-- no need to iterate over it again 2015-04-30 05:42:17 +05:30
Yuki
563293be44 Derp (Caused Retrospring/bugs#41) 2015-04-30 05:34:43 +05:30
Yuki
5764c36b32 DateTime.now -> DateTime.current 2015-04-23 06:48:17 +05:30
Yuki
be04d3528c Support for ban reasons and ban times. Fixes Retrospring/bugs#26 and Retrospring/bugs#25 2015-04-23 06:26:29 +05:30
Yuki
b9bf0b04b6 Add support for report reasons 2015-04-22 08:29:10 +05:30
Georg G
ef4fd30cd9 closes Retrospring/bugs#17 2015-04-22 00:33:55 +02:00
Yuki
ecffd07344 Support for post subscriptions 2015-04-21 06:42:11 +05:30
nilsding
e5b753681c Merge branch 'master' into groups 2015-01-14 17:38:47 +01:00
nilsding
0c97ae60d4 finally got rid of that .each 2015-01-14 07:50:27 +01:00
nilsding
c99fe89235 added group memberships modal 2015-01-14 07:07:40 +01:00
nilsding
eaa4096af5 Merge branch 'master' into groups
Conflicts:
	db/schema.rb
2015-01-13 07:05:11 +01:00
nilsding
d1a6c512c4 finally corrected that model thing. 2015-01-12 06:41:44 +01:00
nilsding
5e26d72d91 finally commited the stuff I wrote 4 hours ago 2015-01-10 23:29:04 +01:00
nilsding
6fcbee55c4 added forbidden user names (including case insensitivity!) 2015-01-09 14:12:52 +01:00
nilsding
ce7f896e0c added Group model 2015-01-08 13:16:13 +01:00
nilsding
3567ba6190 numbers 2015-01-05 10:16:00 +01:00
nilsding
496ff61a65 added User#answered? 2015-01-03 18:40:56 +01:00
nilsding
8aee9bd69e added User#answer, moved some code from inbox.rb to answer.rb 2015-01-03 18:09:56 +01:00
nilsding
e9ab8deb85 :async 2015-01-01 18:17:34 +01:00
nilsding
149868c097 this should do. 2015-01-01 18:08:16 +01:00
nilsding
5df705cdaa argh 2015-01-01 17:59:24 +01:00
nilsding
dee2ba253e fix this shit 2015-01-01 17:54:16 +01:00
nilsding
7aa954e212 added cropper processor 2014-12-29 14:51:52 +01:00
nilsding
b378a03afa added delayed_paperclip 2014-12-29 11:58:01 +01:00
nilsding
cf3933271a added profile_picture to users 2014-12-29 10:18:12 +01:00
nilsding
a0c0d68e43 posting moderation comments works now 2014-12-29 00:50:14 +01:00
nilsding
486d5d18f2 this fucker finally works how I want it to 2014-12-28 23:57:07 +01:00
nilsding
7a0b3f4af7 added votes for reports 2014-12-28 23:26:16 +01:00
nilsding
40f54fd19a more before_destroy and after_create 2014-12-28 21:58:35 +01:00
nilsding
bb3e431393 added associations for this 2014-12-28 21:47:51 +01:00
nilsding
2c29dd9a18 even more after_create and before_destroy 2014-12-28 21:46:57 +01:00
nilsding
9c9c4fdc5d after_create and before_destroy 2014-12-28 21:40:33 +01:00
nilsding
774cf8df99 h 2014-12-28 19:32:08 +01:00
nilsding
90fe42e643 Merge remote-tracking branch 'origin/master' into moderation
Conflicts:
	app/models/user.rb
2014-12-28 19:29:01 +01:00
nilsding
d79394640e fixed GitHub issue #25 2014-12-28 00:34:56 +01:00
nilsding
b625144993 added moderation models 2014-12-27 14:35:09 +01:00
Andreas N
92af469aa4 Merge branch 'master' into moderation 2014-12-27 02:12:32 +01:00
nilsding
e570f40a36 WRYYYYYYYYYYYYYYYYYY 2014-12-27 01:45:24 +01:00
nilsding
88e9d7599d dragons 2014-12-27 01:22:13 +01:00
nilsding
cb003ce36d added link to moderation panel in navbar 2014-12-26 14:09:07 +01:00
nilsding
2251f21664 bio has now validation 2014-12-16 12:48:40 +01:00
nilsding
c0c279e6d8 closes GitHub issue #16 2014-12-14 21:35:24 +01:00
nilsding
622af3490c added denotify method 2014-12-14 15:42:37 +01:00
nilsding
43474a6c92 "commented on your answer" 2014-12-14 15:10:23 +01:00
nilsding
154c360e15 "smiled your answer" 2014-12-14 15:06:10 +01:00
nilsding
c9b5947e6b "followed you" 2014-12-14 14:58:29 +01:00
nilsding
ab9347f053 notifications work now! 2014-12-14 14:34:51 +01:00
nilsding
6d23ed5dcd added service model 2014-12-12 21:42:34 +01:00
nilsding
130cbb27ce Set a validation on :display_name 2014-12-12 18:52:56 +01:00
nilsding
8479f308ac ! 2014-12-07 14:29:35 +01:00
nilsding
d6111d6835 added User#comment 2014-12-05 14:11:08 +01:00
nilsding
b80d3c5bbd removed website validation 2014-12-01 23:17:16 +01:00
nilsding
8b682bd52f added website, bio and location fields to user 2014-12-01 20:47:10 +01:00
nilsding
97c197f112 smiles!!! 2014-11-30 20:31:22 +01:00
nilsding
027f2629b1 added smile model 2014-11-30 19:43:22 +01:00
nilsding
e8974415c9 timeline now actually shows entries 2014-11-30 15:39:13 +01:00
nilsding
928addf5db added methods for following/unfollowing users 2014-11-30 15:13:17 +01:00
nilsding
eecdecfda9 added validations and everything 2014-11-30 14:43:35 +01:00
nilsding
fb48c6d995 finally, setting the display_name works. 2014-11-11 20:20:00 +01:00
nilsding
17db50623a added inbox model 2014-11-10 23:46:02 +01:00