Commit Graph

34 Commits

Author SHA1 Message Date
Harvey Tindall 2be7baea4a
trim base css of most redundant classes 2023-12-24 18:55:58 +00:00
Harvey Tindall d56d45a404
userpage: rework dynamic layout, finally 2023-12-24 18:26:35 +00:00
Harvey Tindall 4fcb58aefa
userpage: fix referral card when no message set 2023-11-11 16:02:01 +00:00
Harvey Tindall a66c522b73
referrals: add "use expiry" option
adds an option when enabling referrals to use the duration of the source
invited (i.e., months, days, hours) for the referral invite. If enabled,
the user won't be able to make a new referral link after it expires. For
referrals enabled for new users via a profile, the clock starts ticking
as soon as the account is created.
2023-11-10 15:07:29 +00:00
Harvey Tindall 9956bbd974
admin: add setting to hide background on login
for #288.
2023-10-02 10:34:14 +01:00
Harvey Tindall ff1ea8549a
userpage: register routes on reverse proxy subfolder
fixes #289.
2023-10-02 09:45:42 +01:00
Harvey Tindall 4c20250888
userpage: actually sub {username} 2023-09-07 23:40:15 +01:00
Harvey Tindall f5a15905e4
userpage: fix email change modal show/hide 2023-09-07 23:35:41 +01:00
Harvey Tindall b08527bce2
userpage: cleanup referral code
moved to its own class, like the expiry card.
2023-09-07 20:42:40 +01:00
Harvey Tindall 311ecb7030
userpage: generate & display referral links
shown on a new card, with an explanation, the number of remaining uses,
and expiry of the current referral.
2023-09-07 16:25:47 +01:00
Harvey Tindall 00e6da520d
userpage: cope with disabled contact methods 2023-09-07 14:40:24 +01:00
Harvey Tindall fc7ae0ec4e
userpage: respect 12h/24h choice 2023-06-24 12:32:28 +01:00
Harvey Tindall 97db4d714a
userpage: implement change password functionality 2023-06-22 20:54:52 +01:00
Harvey Tindall 12ce669566
userpage: add password change card, validation, rearrange page
functionality not done yet, just comitting here because there were lots
of adjustments to layout stuff, accomodating for most combinations of
card presence/size.
2023-06-22 18:51:30 +01:00
Harvey Tindall 3b3f37365a
userpage: autofill username in pwr modal 2023-06-22 12:39:13 +01:00
Harvey Tindall 3ec3e9672e
userpage: time-pad pwr request for ambiguity
the user shouldn't know if the reset has actually been sent (i.e. if an
account with the given contact address exists), so the backend response
is always sent after 1 second.
2023-06-22 12:27:44 +01:00
Harvey Tindall 86daa70ccb
userpage: password resets
click "forgot password" on login modal, enter a contact method
address/username, submit and check for a link. Requires link reset to be
enabled.
2023-06-22 12:08:18 +01:00
Harvey Tindall 4f298bbc8c
userpage: add "back to admin" button 2023-06-22 09:41:41 +01:00
Harvey Tindall 4e7f720214
userpage: hide bg on login, dont refresh page ever 2023-06-21 17:02:57 +01:00
Harvey Tindall 87b0ae6614
userpage: adjust message row span depending on length 2023-06-21 13:30:09 +01:00
Harvey Tindall e7f7dcbb78
userpage: show placeholder message card for admins 2023-06-21 11:27:51 +01:00
Harvey Tindall b546aeb440
userpage: don't wrap contact methods, ellipsise 2023-06-20 22:18:38 +01:00
Harvey Tindall 8e153cd92f
userpage: unlink accounts 2023-06-20 16:44:12 +01:00
Harvey Tindall d509abdd5c
userpage: add matrix 2023-06-20 13:28:13 +01:00
Harvey Tindall 96c51af15a
matrix: modularize 2023-06-20 12:57:52 +01:00
Harvey Tindall fcedea110d
telegram: modularize, add to userpage 2023-06-19 22:11:35 +01:00
Harvey Tindall 68aedf07ae
discord: pad, underline invite link 2023-06-19 18:03:35 +01:00
Harvey Tindall 765a749959
discord: modularize user-facing code
will be done for others too, code for discord account linking in form
and userpage is now in ts/modules/account-linking.ts as a configurable
class.
2023-06-19 11:58:09 +01:00
Harvey Tindall cf7983ca11
userpage: add/edit discord
works identically to on the form, would like to eventually factor out
the discord/telegram/matrix verif stuff so it can be shared between the
two pages though.
2023-06-18 21:38:12 +01:00
Harvey Tindall 609039baeb
userpage: change email (+ confirmation)
edit/add button added for email address. Confirmation works too.
2023-06-18 19:38:09 +01:00
Harvey Tindall 5beeeb958b
userpage: show expiry 2023-06-18 12:27:18 +01:00
Harvey Tindall a22f032924
userpage: show and allow modification of contact methods 2023-06-17 17:27:44 +01:00
Harvey Tindall d3c5feaf1b
userpage: use form langfile, move login strings to common
login-related stuff was moved into common using the langmover script, so
that the user page doesn't have to use the admin language files.
2023-06-17 12:48:28 +01:00
Harvey Tindall 726acb9c29
userpage: initial page
login, lang, and theme work. Currently only makes a request to a
hello-world type endpoint to verify auth works. Accessible at
/my/account.
2023-06-16 14:43:37 +01:00