Commit Graph
46 Commits
Author SHA1 Message Date
evazion 3ffde5b23d users: move account deletion endpoint to /users/:id/deactivate.
Move the account deletion endpoint from /maintenance/users/deletion to either:

* https://danbooru.donmai.us/users/deactivate
* https://danbooru.donmai.us/users/:id/deactivate

This incidentally allows the Owner-level user to deactivate accounts belonging to other users. This
is meant for things like deactivating inactive accounts with invalid or abusive names. This is
limited to accounts below Gold level for security.
2022-11-05 19:09:56 -05:00
evazion 37061f95a6 api keys: rework API key UI.
* Add an explanation of what an API key is and how to use it.
* Make it possible for the site owner to view all API keys.
* Remove the requirement to re-enter your password before you can view
  your API key (to be reworked).
* Move the API key controller from maintenance/user/api_keys_controller.rb
  to a top level controller.
2021-02-14 04:09:47 -06:00
evazion 300b8bdefc user deletions: add confirmation dialog. 2020-04-03 23:44:02 -05:00
evazion 89a3c0b09d users: update explanation on account deactivation page.
* Refer to it as deactivating your account, not deleting your account.
* Update explanation to clarify what is and is not deleted.
* Warn that deactivation cannot be undone.
2020-03-24 18:00:06 -05:00
evazion 167fe51a8a emails: move edit email flow to emails controller. 2020-03-14 17:42:47 -05:00
evazion 5625458f69 users: refactor password reset flow.
The old password reset flow:

* User requests a password reset.
* Danbooru generates a password reset nonce.
* Danbooru emails user a password reset confirmation link.
* User follows link to password reset confirmation page.
* The link contains a nonce authenticating the user.
* User confirms password reset.
* Danbooru resets user's password to a random string.
* Danbooru emails user their new password in plaintext.

The new password reset flow:

* User requests a password reset.
* Danbooru emails user a password reset link.
* User follows link to password edit page.
* The link contains a signed_user_id param authenticating the user.
* User changes their own password.
2020-03-08 23:18:15 -05:00
evazion f25bace766 users: refactor change password page.
* Fix users being redirected back to the change password page after
  successfully changing their password.
* Move passwords controller out of /maintenance/ namespace.
* Add tests.
2020-03-08 23:18:08 -05:00
evazion 6a984de3d5 views: refactor page titles.
Refactor `page_title` helper to automatically include site name.
2020-01-25 01:52:18 -06:00
evazion cae9a5d7e3 Drop dmail filters.
Few people used dmail filters (~900 users in 5 years) and even fewer
used them correctly. Most people used them to try to block dmail spam,
but usually they either blocked too much (by adding common words that
are present in nearly all dmails, causing all mails to them to be
filtered) or too little (blocking specific email addresses or urls,
which usually are never seen again after the spammer is banned).
Nowadays the spam detection system does a better job of filtering spam.
2020-01-21 00:10:20 -06:00
evazion c86c61c9a4 Fix #4162: Remove browser autocomplete from most inputs. 2020-01-10 16:08:34 -06:00
evazion d0d3da08e5 views: remove IP addresses from most pages.
Removed IP addresses from comments and from most other listing pages.
IPs take up a lot of space in many places (especially IPv6 addresses),
and in most of these pages they're rarely useful for catching
sockpuppets.
2020-01-09 16:55:09 -06:00
evazion efd1327f1e login: remove login reminder page.
Remove the login reminder page. The meaning of "login reminder" wasn't
clear (it's for recovering a forgotten username) and the functionality
was redundant. The password reset page can already be used to recover
forgotten usernames.

There was also a privacy leak, since the login reminder page could be
used to find out whether a given email is in use on Danbooru.
2019-12-14 16:19:01 -06:00
evazion 77d2260576 css: clean up <ul> css.
* Remove `list-style-type: none` rules (this is the default).
* Add `list-bulleted` and `list-inline` utility classes.
* Wrap terms of service and user deletion pages in dtext `.prose` class
  so we don't have to redefine basic list styles on these pages.
2019-09-23 19:10:40 -05:00
evazion f4512576a4 css: standardize width of fixed width pages.
Standardize various width-limited pages to 70em width.
2019-09-23 17:56:50 -05:00
evazion 01c4395105 profiles: add 'refresh' link next to post changes count.
Remove the 'Refresh counts' link from the site map. Put it in the user's
profile instead.
2019-08-15 12:51:51 -05:00
evazion 8d07ad7390 js: clean up notice/error messaging. 2019-08-14 01:46:44 -05:00
evazion 0aecc9d34c css: fix 020_base.scss getting imported twice.
This import caused all in the rules in 020_base.scss to be included
twice in the final stylesheet.
2018-09-14 10:31:30 -05:00
Albert Yi 6fa0ae2cf1 Migrate assets to use Webpacker 2018-07-27 15:24:05 -07:00
Albert Yi 28663351d1 fixes #3757 2018-06-20 11:27:49 -07:00
BrokenEagle 5cdd8d8f67 Standardize position of page title and secondary links
- Removed path specification for secondary links where unneeded
2017-12-28 10:20:27 -08:00
BrokenEagle 31d3215dad Fix page controller and action IDs
- Also fix affected CSS and JS files
2017-12-28 10:20:12 -08:00
evazion 7cb7c2fbab Remove ruby DText implementation (#3206). 2017-07-19 16:48:42 -05:00
evazion bdf3366bcf Link IP addresses to IP searches. 2017-01-12 09:15:14 +00:00
evazion a92120e873 Fix #2785: Allow changing API key; require password to view or change key. 2016-12-18 06:30:48 -06:00
r888888888 4cd6dfe884 enable ragel parser in more places 2016-07-25 13:42:04 -07:00
r888888888 4c5e7a2708 fixes #2478: Add links for easy opt-out of emails 2015-09-03 17:03:03 -07:00
r888888888 076416c228 fix functional tests 2015-08-19 11:23:29 -07:00
r888888888 341b29ce41 fix tests 2015-08-18 17:40:53 -07:00
r888888888 67e46f6e5c fixes #2418 (includes hiding deleted dmails and allowing filtering on user name) 2015-07-07 17:32:38 -07:00
r888888888 1abdcb3cf3 fixes #2419 2015-06-30 13:21:39 -07:00
r888888888 08b6766446 fix user deletions 2013-06-05 15:14:06 -07:00
Toks 240b160b8a style user deletion page (#1676) 2013-05-26 08:08:05 -04:00
r888888888 eab2eb1d82 fixes #1651 2013-05-21 17:52:03 -07:00
r888888888 0a9e2a39b0 add account deletion 2013-05-16 15:15:00 -07:00
r888888888 a25242f68d in progress 2013-04-30 23:25:26 -07:00
r888888888 d5f575159f rename references of privileged to gold 2013-04-28 00:04:52 -07:00
小太 1a03a86592 Kill trailing whitespace in erb files 2013-03-19 23:11:58 +11:00
albert 34ae712be0 fixed titles 2011-10-23 16:55:57 -04:00
albert 7b3c540bc0 fix for password resets 2011-09-18 17:22:34 -04:00
albert 1e9efe65f4 updated mailer urls 2011-09-18 17:12:48 -04:00
albert d42e82eb2f updated mailer urls 2011-09-18 17:08:17 -04:00
albert 19e052724c fixes #85: Emailed message of Password Reset Request 2011-09-18 15:47:15 -04:00
albert a562d27a5f fixes for mailer config 2011-09-15 18:21:42 -04:00
albert 075e17c820 fixes #47: Login Reminder issue 2011-09-14 13:03:14 -04:00
albert c453e7db0f implemented password resets 2011-07-20 15:54:17 -04:00
albert 72e9da01b5 fixing functional tests 2011-07-17 16:42:26 -04:00