mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-17 00:24:43 -04:00
Change schema of url environment variables (#1237)
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
41e493c8bc
commit
a48b4f60bb
18 changed files with 33 additions and 33 deletions
|
@ -30,7 +30,7 @@ export const SignInButton: React.FC<SignInButtonProps> = ({ variant, ...props })
|
|||
const activeOneClickProviders = activeProviders.filter(entry => !INTERACTIVE_LOGIN_METHODS.includes(entry))
|
||||
|
||||
if (activeProviders.length === 1 && activeOneClickProviders.length === 1) {
|
||||
return `${ getApiUrl() }/auth/${ activeOneClickProviders[0] }`
|
||||
return `${ getApiUrl() }auth/${ activeOneClickProviders[0] }`
|
||||
}
|
||||
return '/login'
|
||||
}, [authProviders])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue