Andy Allan
a65cb84288
Remove unused code
2020-11-11 16:43:58 +00:00
Tom Hughes
7db541d697
Invalidate existing sessions when changing email or password
...
As we don't have any way to actually find the active sessions for
an account we instead store a fingerprint in the session, and refuse
to use any session with a different fingerprint.
2020-09-29 14:34:08 +01:00
Tom Hughes
c694c78c9a
Delete any outstanding tokens when a user changes their email
...
This ensures that any tokens previously sent to the old email address
can no longer be used if somebody were able to access that address.
2020-09-29 13:47:40 +01:00
Tom Hughes
18b9b9f14c
Fix new rubocop warnings
2020-09-07 07:11:22 +01:00
Tom Hughes
ea59d95f4a
Fix some new rubocop warnings
2020-08-06 22:27:30 +01:00
Andy Allan
040302286f
Remove ignoring of nearby column
...
This is the final stage in the process. Now that the migrations are run,
and apps restarted, it is safe to remove the ignore_column declaration.
2019-12-11 18:08:31 +01:00
Andy Allan
a41d500b9f
Create an ApplicationRecord for models to inherit from
...
This is the default for Rails 5+, and also paves the way for
multiple database support.
2019-11-27 11:50:48 +01:00
Andy Allan
dd294f89b8
Ignore the users.nearby column
...
This is the first step of removing the column, see #2417 . It needs to be
deployed before a migration to remove it, since the columns are
cached in ActiveRecord and things break if objects exist in memory
that expect the column to be there.
2019-11-13 14:19:32 +01:00
Tom Hughes
8a39c6b4a2
Drop old user image columns
2019-07-17 19:12:30 +01:00
Andy Allan
0444187cb6
Update annotations after 91a37235ac
2019-07-17 10:39:10 +02:00
Tom Hughes
91a37235ac
Remove support for old style user images
2019-07-16 22:33:26 +01:00
Tom Hughes
905a7eadb6
Defer deletion of avatars to a background job
2019-07-16 08:27:14 +01:00
Tom Hughes
6c202448ad
Move user images to Active Storage with paperclip as a fallback
2019-07-09 19:17:30 +01:00
Andy Allan
d33b1f6b29
Pass the models, not the ids, when dealing with friendships
2019-06-19 16:56:31 +02:00
Andy Allan
2169c503ef
Rename user.friend_users to user.friends
...
This is possible now since we've renamed Friend to Friendship
2019-06-19 16:51:35 +02:00
Andy Allan
1cf8fec58d
Rename Friend model to Friendship
...
This better describes what the model represents, which is the relationship
between the two users.
2019-06-19 16:39:25 +02:00
Andy Allan
4377e2bd55
Update annotations to correctly show bigint types
2019-05-29 11:52:20 +02:00
Simon Poole
077834704e
Add links to the ToU and include them in signup
...
- this adds links to the ToU in the Welcome box and on the About page
- adds a timestamp column to the users table to record acceptance of the ToU
- require ToU to be accepted before signup can proceed
- rearrange and change text on signup page
2019-05-13 16:52:18 +02:00
Andy Allan
d102c9aaf4
Move all settings to settings.yml
...
We leave the STATUS setting alone, since it's required before rails
boots. The test-specific settings now live in config/settings/test.yml
2019-03-13 18:06:23 +01:00
Tom Hughes
7ccf6964e3
Prevent leading and trailing whitespace on email addresses
2019-03-08 11:17:51 +00:00
Tom Hughes
e174eb762f
Strip leading and trailing whitespace for email authentication
...
Fixes #2173
2019-03-08 10:59:57 +00:00
Tom Hughes
d73a5d4bc0
Merge character validators
2018-11-05 18:54:19 +00:00
Tom Hughes
b4ef61a9f3
Merge leading and trailing whitespace validators
2018-11-05 18:29:17 +00:00
J Guthrie
6cde8c9b0c
Changed User model to not allow nil display_name (w/ tests)
2018-11-05 15:40:37 +00:00
J Guthrie
c2f23fea6a
Create invalid_char validators and apply to models
2018-11-05 14:27:03 +00:00
J Guthrie
64816e50b5
Added more non-ascii chars to validation (matching list of chars in other models)
2018-11-05 14:24:30 +00:00
J Guthrie
7d6c5d7cd7
Fix rubucop errors
2018-11-05 14:24:29 +00:00
J Guthrie
b439bac920
Make invalid char list more explicit (between ascii and non ascii chars)
2018-11-05 14:24:29 +00:00
J Guthrie
c3254b7e93
Added trailing/leading whitespace errors to locale
2018-11-05 14:24:25 +00:00
J Guthrie
88e048deea
Specifiy invalid chars in username error message
...
- Refactored list of invalid chars out to constant
2018-11-05 14:24:24 +00:00
Tom Hughes
98de681e47
Update to rails 5.2.0
2018-06-19 00:16:24 +01:00
Tom Hughes
d3700e6201
Merge branch 'master' into next
2018-06-10 17:02:12 +01:00
J Guthrie
30756f72ca
Change language immediately after updating settings
...
Closes #1883
2018-05-27 15:12:34 +01:00
Andy Allan
7dbf8d8336
Merge branch 'master' into moderation
2018-04-11 09:54:04 +08:00
Tom Hughes
1f2ac59d1d
Fix new rubocop warnings
2018-03-26 19:00:03 +01:00
Andy Allan
9f84c6f46e
Use user_path links. Fixes #1785
2018-03-21 11:33:45 +08:00
Andy Allan
5e7abf67fb
Remove nonsense has_one relationship
2018-03-14 15:20:04 +08:00
Tom Hughes
276859d0c9
Validate user location is sensible
2018-03-04 10:53:14 +00:00
Tom Hughes
9361478e74
Use home_tile to find nearby users
2018-03-04 09:59:24 +00:00
Tom Hughes
f1e9dcc66a
Add an indexed home_tile column to the user table
2018-03-04 09:59:23 +00:00
Andy Allan
a20e28809f
Merge branch 'master' into moderation
2018-02-28 15:55:28 +08:00
Andy Allan
424b6ef1cf
Merge branch 'master' into moderation
2018-02-28 15:46:25 +08:00
Tom Hughes
81241b3083
Exclude hidden diary entries and comments from spam scoring
2018-02-26 22:35:06 +00:00
Tom Hughes
a83030dab7
Fix new rubocop warnings
2018-01-22 18:55:45 +00:00
Andy Allan
effb1b7f41
Merge branch 'master' into moderation
2017-11-29 12:18:39 +00:00
Andy Allan
b2a8df0bd7
Add annotate gem and associated rake task. Annotate models.
2017-10-22 22:18:26 +01:00
Andy Allan
dbd88d893f
Merge branch 'master' into moderation
2017-07-12 10:16:11 +01:00
Tom Hughes
5b33f3f8e3
Fix rubocop warnings
2017-06-02 00:08:30 +01:00
Tom Hughes
c8671c137a
Update rubocop
2017-02-05 11:12:37 +00:00
Tom Hughes
282ff4936c
Fix rubocop warnings
2016-10-31 21:24:10 +00:00