mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 09:45:37 -04:00
Add one-click login if possible (#1043)
This commit is contained in:
parent
a6c80ac1f0
commit
6d2dde477c
26 changed files with 216 additions and 53 deletions
|
@ -7,6 +7,8 @@
|
|||
import { RegisterError } from '../../components/register-page/register-page'
|
||||
import { defaultFetchConfig, expectResponseCode, getApiUrl } from '../utils'
|
||||
|
||||
export const INTERACTIVE_LOGIN_METHODS = ['internal', 'ldap', 'openid']
|
||||
|
||||
export const doInternalLogin = async (username: string, password: string): Promise<void> => {
|
||||
const response = await fetch(getApiUrl() + '/auth/internal', {
|
||||
...defaultFetchConfig,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue