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

20 Commits

Author SHA1 Message Date
Timur Ismagilov
3c32e40e59 Fix a Telegram-related bug
I removed my favorite comment:

// Problems is something we put blankets on.
2023-02-25 23:38:51 +03:00
Umar Getagazov
8b3fd9b240 Fix -create-admin not working on non-POSIX systems 2022-08-20 17:48:23 +05:00
Timur Ismagilov
c1ac0bbd16 Auth: Do not let users with weird characters in name register 2022-05-17 16:31:12 +03:00
Umar Getagazov
649a6b91cb Improve validation helpers
Still, there are a lot of bugs in the shroom module to be fixed later.
2021-10-27 13:43:01 +07:00
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
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
Timur Ismagilov
662794dd59 Move config-related stuff to its own module 2021-05-09 14:36:39 +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
e33e5d06a1 Move the user link to the header links 2021-01-24 12:30:14 +05:00
bouncepaw
b1f33c872c Make account system concurrent-safe and refactor it a little 2021-01-10 01:49:48 +05:00