Tom Hughes
b42d48ff65
Add scope for unexpired user tokens
2024-02-24 13:20:07 +00:00
Andy Allan
c9a86866bb
Merge pull request #4485 from tomhughes/drop-lower-index
...
Drop lowercase index on display names
2024-01-18 10:49:52 +00:00
Andy Allan
7406ae5dcc
Merge pull request #4218 from AntonKhorev/no-user-id-renames
...
Disallow username changes to user_n if n isn't their id
2024-01-18 10:47:17 +00:00
Andy Allan
0a21080192
Move change detection to validation declaration
...
This aligns with other validations. Also add test to ensure unchanged
display_names are treated as valid.
2024-01-18 10:33:56 +00:00
Anton Khorev
2c342adc0d
Disallow username changes to user_n if n isn't their id
2024-01-18 10:33:56 +00:00
Tom Hughes
9db635a992
Drop lowercase index on display names
2024-01-17 19:05:25 +00:00
Andy Allan
d5efa4c357
Merge pull request #4405 from tomhughes/normalize-display-name
...
Require user names to be unique after unicode normalisation
2024-01-17 16:24:09 +00:00
Tom Hughes
242a4a1aee
Include both copies of the password in the saved user
...
This allows is to go back to hashing passwords when the user is saved.
Fixes #4474
2024-01-12 17:55:16 +00:00
Anton Khorev
6427f68ea7
Don't show native language name if it's the same as English name
2024-01-02 09:09:33 +03:00
Gregory Igelmund
efc61f1315
Add basic structures for UserMute and Message muting logic
...
Including models, migration, controllers, views & locales.
2023-12-19 12:57:47 -05:00
Tom Hughes
9a6a6fab73
Make allow_account_creation work the same as other ACLs
2023-12-19 12:03:08 +00:00
Milan Cvetkovic
a4c23cd89f
Implement allow list for account creation
2023-12-17 07:55:43 +00:00
Tom Hughes
c12f8959dd
Require user names to be unique after unicode normalisation
...
As with the previous checks on case sensitivity this only affects
new users, and changes to names of existing users.
2023-12-13 22:27:36 +00:00
Tom Hughes
0c2e471708
Fix new rubocop warnings
2023-12-05 18:13:13 +00:00
Anton Khorev
a8aaf62e62
Add earliest allowed deletion time to user model
2023-11-22 17:02:48 +03:00
Tom Hughes
aaed886890
Hash passwords as soon as a new user is created
2023-11-16 01:02:11 +00:00
Tom Hughes
cebda5ffb9
Merge remote-tracking branch 'upstream/pull/4319'
2023-11-15 17:14:49 +00:00
Tom Hughes
68845eb725
Use the URL safe base64 variant for mail tokens
2023-11-08 22:53:18 +00:00
Tom Hughes
675b89ddb7
Strengthen the tokens used in email reply addresses
2023-11-07 17:52:31 +00:00
Tom Hughes
c6bb4a5f4e
Add importer role that can be associated with higher rate limits
2023-11-02 08:58:12 +00:00
Tom Hughes
b5995c5175
Only count new reports as active for rate limits
2023-11-02 08:44:43 +00:00
Tom Hughes
4f542ef900
Remove extraneous fields from primary keys for relation members
2023-10-26 18:08:26 +01:00
Tom Hughes
a6b5f2f56d
Adjust code for rails internal changes
2023-10-18 18:26:14 +01:00
Tom Hughes
46cd08b1c8
Replace composite_primary_keys with rails builtin support
2023-10-18 18:26:14 +01:00
Tom Hughes
5933ade9a7
Update annotation for change to changeset_tags indexes
2023-10-18 15:53:45 +01:00
Gregory Igelmund
a4edd3fd04
Annotate models
2023-10-14 11:19:13 +08:00
Tom Hughes
7dbc349510
Drop redundant primary key specification for languages table
2023-10-07 15:08:30 +01:00
Tom Hughes
e210b4efbf
Improve naming of changeset comment rate limit settings
2023-08-30 18:25:06 +01:00
Andy Allan
b595b87c48
Use trace instead of gpx_id in queries
...
This makes the queries easier to read.
2023-08-30 17:08:46 +01:00
Andy Allan
f5db9cbb20
Avoid using _id in queries
...
This makes the queries shorter and easier to read.
2023-08-30 17:08:16 +01:00
Tom Hughes
a274726f46
Add rate limiting for changeset comments
...
Fixes #4196
2023-08-25 19:53:04 +01:00
Tom Hughes
6982903ae7
Fix predicate method names in the user model
2023-08-15 18:53:14 +01:00
Anton Khorev
033c032ed6
Add home location condition to user model
2023-08-11 21:44:15 +03:00
Andy Allan
68fa607811
Use hashes to define where..in sql queries
...
This is preferable to using SQL statements.
2023-08-03 11:04:28 +01:00
Tom Hughes
c376962c9c
Only show granted permissions in the authorized application list
...
Fixes #4124
2023-07-30 20:35:13 +01:00
Tom Hughes
466de96a91
Fix new rubocop warnings
2023-06-27 18:13:33 +01:00
Tom Hughes
445e8162e9
Revoke authentication tokens when a user is deleted
2022-12-23 16:24:10 +00:00
Andy Allan
067b0de439
Merge pull request #3676 from harry-wood/notes-disappear-time
...
Display how long until a note will disappear
2022-11-23 15:44:26 +00:00
Harry Wood
e057e1c479
Define a DEFAULT_FRESHLY_CLOSED_LIMIT constant
...
Define DEFAULT_FRESHLY_CLOSED_LIMIT in the Note model to allow the 7 day limit to be referenced in the API controller and in the new `freshy_closed_until` logic. The default value is `7.days`. API users can still override this, but the website uses that default for the duration of the green "freshly closed" notes markers.
2022-09-14 23:59:41 +01:00
Harry Wood
d8e51614cb
Display how long until a note will disappear
...
Modify the message displayed at the bottom of the notes sidepanel. For already resolved notes we don't want to say "please resolve it". Fixes https://github.com/openstreetmap/openstreetmap-website/issues/3663
Instead explain that it will disappear from the map (so reporting is probably not necessary) and display how long to go until that happens. Tackling https://github.com/openstreetmap/openstreetmap-website/issues/3071
2022-09-14 23:59:25 +01:00
Adam Hoyle
7e5cbe87ed
Merge branch 'master' into feature/add-communities-page
...
# Conflicts:
# Gemfile.lock
# package.json
# yarn.lock
2022-09-10 16:13:17 +01:00
Andy Allan
bb7f5ac2c8
Switch to using FrozenRecord for loading communities
...
This allows us to query the records to get the local chapters, which
is more flexible and allows us to use other resources too.
2022-07-27 16:19:08 +01:00
Anton Khorev
b54c03389b
Strip leading/trailing whitespace from comma-separated trace tags
2022-07-19 13:47:28 +03:00
Tom Hughes
a3a228862c
Add validation for relation member roles
...
Fixes #3563
2022-06-09 19:21:08 +01:00
Harry Wood
3ca8b63643
Put issue comments through kramdown formatter
...
On issue comments (which only admins can create or see), put the `body` text through kramdown formatting.
2022-05-06 13:36:59 +01:00
Harry Wood
9401e451d1
Format report text with kramdown
...
Pass the text of reports ('details' field) through the RichText formatter to give us kramdown formatting support.
2022-04-29 01:31:39 +01:00
Andy Allan
561ee71129
Rubocop autofix: ambiguous operator precedence
...
This simply adds braces to clarify which mathematical operator comes
first.
2022-04-06 14:55:29 +01:00
Andy Allan
d6f8302eae
Merge pull request #3491 from tomhughes/legacy-trace
...
Remove support for legacy trace files
2022-03-09 17:10:40 +00:00
Tom Hughes
cbcc7dc49f
Fix some rubocop Naming/PredicateName warnings
2022-03-03 22:47:55 +00:00
Tom Hughes
92b122759f
Remove support for legacy trace files
2022-03-03 19:47:40 +00:00