1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 03:36:16 +00:00
Commit Graph

35 Commits

Author SHA1 Message Date
Timur Ismagilov
3ff57d1d03 Implement /edit-category
Also, /remove-from-category now accepts multiple hyphae at once, and removes them all
2022-07-24 16:41:16 +05:00
Timur Ismagilov
2e59f75647 Auth: Do not load users with weird characters in names
If they were registered in earlier versions, you should do something about it:

* Delete them manually.
* Workaround: register a new user to force user storage dump. You can delete them afterwards.
2022-05-17 16:35:43 +03:00
Timur Ismagilov
c1ac0bbd16 Auth: Do not let users with weird characters in name register 2022-05-17 16:31:12 +03:00
Timur Ismagilov
59bb34b920 Categories: Do not let anons add to/remove from categories 2022-03-26 18:31:13 +03:00
Timur Ismagilov
72e0f445fd Rename attachment to media 2022-02-26 10:33:09 +03:00
Timur Ismagilov
d8699d46c0 Backlinks: Fix backlinks for media and empty hyphae 2022-02-26 09:42:54 +03:00
Timur Ismagilov
4ab9a88437 Remove some unused stuff 2022-02-20 13:11:29 +03:00
Timur Ismagilov
41651f9e9b Break a lot of stuff
Starring:
* Fix some bugs for /rename/
* Introduce /delete/, /remove-media/
* Introduce some bugs for the methods mentioned above
2022-02-20 00:12:28 +03:00
Timur Ismagilov
eb9acb718e Break a lot of stuff
Starring:
* Broken error localization for now (got in the way)
* The title for error pages is the same for all errors (who cares anyway)
* New bugs
* The brand new /rename/ handler
2022-02-19 19:42:32 +03:00
Timur Ismagilov
86d1a00bfc Implement the rocket link migration algorithm 2022-02-01 15:11:50 +05:00
Umar Getagazov
82014ce3f4 Fix a typo 2021-11-10 14:21:11 +07:00
hugmouse
b2789f923f Simplify return statement 2021-10-29 16:08:02 +07: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
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
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
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
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
58ed6ecdfb Add /admin/shutdown 2021-02-18 19:50:37 +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
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
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