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

22 Commits

Author SHA1 Message Date
Timur Ismagilov
afb5c22c40 Admin: Isolate the panel view 2022-05-18 21:03:36 +03:00
Timur Ismagilov
78bae127b3 Use viewutil.Meta in many places 2022-04-01 22:51:15 +03:00
Timur Ismagilov
a8b3e3d43a Implement viewutil.Base 2022-03-29 23:59:36 +03:00
Timur Ismagilov
0a273f55f4 Admin: Port /admin/ to the new template approach 2022-03-26 18:26:14 +03:00
Timur Ismagilov
eb88cbf23e Views: Drop the *HTML suffix 2022-03-21 00:24:40 +03:00
Timur Ismagilov
d75f96d5ce Rename /admin/user/new to /admin/new-user
There was no /admin/user path to begin with!
2021-12-31 01:39:31 +05:00
Mikhail Chekan
85c936d94a Housekeeping with linter
'I do as the golint guides'
2021-10-02 01:14:26 +08:00
Mikhail Chekan
bca1c23d36 Merge l18n with master updates 2021-09-27 17:24:02 +08:00
Mikhail Chekan
0780131c00 Initial l18n support 2021-09-27 16:45:23 +08:00
Timur Ismagilov
18179f1c7f Get rid of " in some places
Violently
2021-08-12 17:12:53 +05:00
handlerug
49b0a35304 Refactor admin routes
They're not perfect, I still don't like them, but I can't think of a
good solution right now. I'm going to thinking about the best way of
doing web stuff for some time.
2021-07-16 01:58:27 +07:00
handlerug
3ee21e312d Refactor the locking mechanism 2021-07-16 01:14:05 +07:00
handlerug
6fdab4be34 Migrate to gorilla/mux for web needs
What a wonderful package!
2021-07-16 00:47:00 +07:00
bouncepaw
5e450612a1 Mark user's source: local or telegram 2021-07-15 08:50:45 +00:00
Timur Ismagilov
5d45ae67d4 Make the lock work
There is a new config field: Authorization.Locked.

I am a little bit sorry for how actually the lock is implemented. I've added the check on almost every handler there is. Good luck maintaining that ❤️
2021-07-11 00:06:07 +05:00
handlerug
c27950aeaa
Ability to delete user in the user panel 2021-07-02 21:04:00 +07:00
handlerug
1c24450a8f
New user form in /admin/users/ 2021-07-02 19:02:42 +07: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
Timur Ismagilov
b8420c81a8 Link the user panel from the admin panel 2021-06-29 23:43:04 +05:00
handlerug
11e98b2368
Working user panel
See https://mycorrhiza.wiki/hypha/idea/user_panel

It's not pretty, but it works. The next step is to make it look good.
2021-06-29 22:10:48 +07:00
handlerug
477c449a05
Initial user panel draft 2021-06-29 17:34:36 +07:00
Timur Ismagilov
a1852d363e Refactor and document some stuff 2021-05-11 13:33:00 +05:00