1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-16 15:00:26 +00:00
Commit Graph

15 Commits

Author SHA1 Message Date
Timur Ismagilov
eb88cbf23e Views: Drop the *HTML suffix 2022-03-21 00:24:40 +03:00
Timur Ismagilov
51f5ebf46d Auth: Refactor login and logout
GET /login and POST /login-data are merged into /login.

GET /logout and POST /logout-confirm are merged into /logout.

The logout form now looks more consistent with other forms.

Used io.WriteString instead of Fprint where it wasn't like that for some reason.
2021-12-31 02:07:39 +05:00
Mikhail Chekan
0780131c00 Initial l18n support 2021-09-27 16:45:23 +08:00
Timur Ismagilov
6241350e8b Fix some layout things 2021-07-24 16:09:57 +05:00
Timur Ismagilov
ae03dbcd64 Add Telegram widget to the Lock page 2021-07-16 01:54:00 +05:00
bouncepaw
8059674925 Improve some forms 2021-07-15 08:50:45 +00:00
bouncepaw
df78f75efb Implement initial Telegram integration 2021-07-15 08:50:45 +00:00
Timur Ismagilov
d8f4f40f52 Implement the lock page
It is unused now, you can take a look at it on /lock
2021-07-11 00:06:07 +05:00
handlerug
b87583ef28
Drop fixed authorization
Important changes:
- UseFixedAuth is now UseAuth and toggles all kinds of authorization and
  registration
- UseRegistration is now AllowRegistration to better reflect the meaning
- LimitRegistration is now RegistrationLimit because it's not a boolean,
  it's a value (not "limit registration?", but "registration limit is
  ...")
- registered-users.json is now users.json, because all users are stored
  there
- user.AuthUsed is dropped in favor of new cfg.UseAuth which has the
  same meaning

I hope I have not forgotten anything.
2021-07-02 15:20:03 +07:00
handlerug
3f6500bae2
Fix spelling on the registration page 2021-06-06 21:21:21 +07:00
Timur Ismagilov
39e7f0b880 Make the login and register forms look better in the dark theme 2021-05-16 13:37:35 +05:00
Timur Ismagilov
662794dd59 Move config-related stuff to its own module 2021-05-09 14:36:39 +05:00
bouncepaw
68ab5df3f1 Implement register form and some registration-related code 2021-04-12 22:40:43 +05:00
bouncepaw
170240177e Slight redesign of the login form 2021-02-23 19:36:12 +05:00
bouncepaw
c83710f155 Move mutators.qtpl and auth.qtpl to the views 2021-02-23 19:25:07 +05:00