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

41 Commits

Author SHA1 Message Date
Mikhail Chekan
85c936d94a Housekeeping with linter
'I do as the golint guides'
2021-10-02 01:14:26 +08:00
Timur Ismagilov
18179f1c7f Get rid of " in some places
Violently
2021-08-12 17:12:53 +05: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
bouncepaw
df78f75efb Implement initial Telegram integration 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
d4fea3d24a
Add -create-admin flag
It allows for interactive creation of admin account from the terminal
for new wikis. Because we have a chicken-and-egg problem here with the
user panel -- you need an admin account to appoint someone as an admin,
right?
2021-07-02 17:25:13 +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
handlerug
7073f9bce0
Actually check for illegal username, pretty errors 2021-07-01 15:45:03 +07: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
handlerug
16861bd3d4
Automatically migrate fixed users to registered
Now registered users are loaded unconditionally, ignoring the config
field.
2021-06-27 21:53:53 +07:00
handlerug
7b2423ec40
New structure 2021-06-23 21:01:34 +07:00
Timur Ismagilov
9d6bf4c191
Merge branch 'master' into 1.2 2021-06-05 23:01:46 +05:00
Timur Ismagilov
4e1115d609 Canonize user names when reading them 2021-06-03 18:16:15 +05:00
Timur Ismagilov
fcc6ec1549 Indent marshalled JSON
It is a quickfix requested by Dan
2021-05-27 17:04:10 +05:00
Timur Ismagilov
662794dd59 Move config-related stuff to its own module 2021-05-09 14:36:39 +05:00
handlerug
989ed43455
Fix auth system not getting enabled 2021-04-28 17:12:05 +07:00
Timur Ismagilov
53981c28ca Move some file-related stuff to a separate module 2021-04-26 22:25:47 +05:00
Timur Ismagilov
bcdb38bd68 Implement registration 2021-04-26 21:29:41 +05:00
bouncepaw
aee2f23b5e You can now register, but the new account is not saved on disk 2021-04-19 21:39:25 +05:00
bouncepaw
68ab5df3f1 Implement register form and some registration-related code 2021-04-12 22:40:43 +05:00
bouncepaw
f3c4a45c3d Add primitive diffs accessible from history pages 2021-03-14 20:01:32 +05:00
bouncepaw
be19d19a5e Fix user credentials not being read 2021-03-07 19:58:37 +05:00
Alexey Gusev
c7ab41a3b0 Fix token storage path 2021-03-05 23:40:41 +03:00
bouncepaw
58ed6ecdfb Add /admin/shutdown 2021-02-18 19:50:37 +05:00
bouncepaw
e3b4c75f79 Add /user-list page 2021-01-30 23:21:50 +05:00
bouncepaw
e33e5d06a1 Move the user link to the header links 2021-01-24 12:30:14 +05:00
bouncepaw
100f5ada92 Add header links 2021-01-24 00:00:58 +05:00
bouncepaw
e72ca863e3 Add /about page, remove -title option, add -name and -icon options 2021-01-23 18:45:17 +05:00
bouncepaw
0341fa6440 Allow unattaching 2021-01-19 23:08:59 +05:00
bouncepaw
b1f33c872c Make account system concurrent-safe and refactor it a little 2021-01-10 01:49:48 +05:00
bouncepaw
b30c368c48 Sign edits and refactor mutators a little 2020-11-18 18:07:53 +05:00
bouncepaw
57751d03f4 Change navigation links depending on who the user is 2020-11-16 20:26:03 +05:00
bouncepaw
cfdc7b82ae Do not let mutate pages without rights for doing so 2020-11-15 17:58:13 +05:00
bouncepaw
4686b79226 Save active sessions between launches 2020-11-14 19:46:04 +05:00
bouncepaw
f4ba0f5498 Implement logging out 2020-11-14 18:03:06 +05:00
bouncepaw
a0d1099b75 Implement login form 2020-11-14 15:39:18 +05:00
bouncepaw
c83ea6f356 Start implementing fixed authorization system 2020-11-13 23:45:42 +05:00