memos/api/v1
Lilith c1cbfd5766
feat: add system setting to disable password-based login (#2039)
* system setting to disable password login

* fix linter warning

* fix indentation warning

* Prohibit disable-password-login if no identity providers are configured

* Warnings and explicit confirmation when en-/disabling password-login

- Disabling password login now gives a warning and requires a second
  confirmation which needs to be explicitly typed.
- (Re)Enabling password login now also gives a simple warning.
- Removing an identity provider while password-login is disabled now
  also warns about possible problems.

* Fix formatting

* Fix code-style

---------

Co-authored-by: traumweh <5042134-traumweh@users.noreply.gitlab.com>
2023-07-30 21:22:02 +08:00
..
auth chore: update auth page (#1920) 2023-07-09 21:13:26 +08:00
activity.go refactor: migrate definition to api v1 (#1879) 2023-07-02 18:56:25 +08:00
auth.go feat: add system setting to disable password-based login (#2039) 2023-07-30 21:22:02 +08:00
common.go refactor: migrate definition to api v1 (#1879) 2023-07-02 18:56:25 +08:00
http_getter.go chore: add api docs (#1965) 2023-07-15 23:30:20 +08:00
idp.go chore: update common utils (#1908) 2023-07-06 22:53:38 +08:00
jwt.go chore: fix request path (#2014) 2023-07-23 10:12:13 +08:00
memo_organizer.go chore: update common utils (#1908) 2023-07-06 22:53:38 +08:00
memo_relation.go refactor: migrate memo to apiv1 (#1907) 2023-07-06 21:56:42 +08:00
memo_resource.go chore: update common utils (#1908) 2023-07-06 22:53:38 +08:00
memo.go fix: get user by username api (#2034) 2023-07-26 22:41:21 +08:00
openai.go feat: implement memos chat backend function (#1934) 2023-07-13 11:25:59 +08:00
resource.go chore: split save resource asset (#1939) 2023-07-14 11:14:10 +08:00
rss.go chore: fix rss route (#2010) 2023-07-22 21:51:05 +08:00
shortcut.go chore: update common utils (#1908) 2023-07-06 22:53:38 +08:00
storage.go refactor: migrate storage to apiv1 (#1890) 2023-07-04 10:05:57 +08:00
system_setting.go feat: add system setting to disable password-based login (#2039) 2023-07-30 21:22:02 +08:00
system.go feat: add system setting to disable password-based login (#2039) 2023-07-30 21:22:02 +08:00
tag_test.go revert: fix: exclude all punctuation chars except underscore in tags (#2033) 2023-07-26 21:11:13 +08:00
tag.go revert: fix: exclude all punctuation chars except underscore in tags (#2033) 2023-07-26 21:11:13 +08:00
user_setting.go feat: add hindi language translation for i18n support (#2001) 2023-07-22 09:38:54 +08:00
user.go fix: get user by username api (#2034) 2023-07-26 22:41:21 +08:00
v1.go feat: implement memos chat backend function (#1934) 2023-07-13 11:25:59 +08:00