mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 11:41:20 -04:00
chore: Fix npm lint issues in PasswordLessLoginForm.vue
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
4a0d4369cd
commit
467aa5a147
1 changed files with 3 additions and 3 deletions
|
|
@ -41,8 +41,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { browserSupportsWebAuthn } from '@simplewebauthn/browser'
|
||||
import { getBaseUrl } from '@nextcloud/router'
|
||||
import { browserSupportsWebAuthn } from '@simplewebauthn/browser'
|
||||
import {
|
||||
startAuthentication,
|
||||
finishAuthentication,
|
||||
|
|
@ -128,8 +128,8 @@ export default {
|
|||
.then(({ defaultRedirectUrl }) => {
|
||||
logger.debug('Logged in redirecting')
|
||||
if (redirectUrl) {
|
||||
if (redirectUrl.charAt(0) !== "/") {
|
||||
redirectUrl = "/" + redirectUrl;
|
||||
if (redirectUrl.charAt(0) !== '/') {
|
||||
redirectUrl = '/' + redirectUrl
|
||||
}
|
||||
window.location.href = getBaseUrl() + redirectUrl
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue