chore: Fix npm lint issues in PasswordLessLoginForm.vue

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2026-04-27 14:47:16 +02:00
parent 4a0d4369cd
commit 467aa5a147
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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 {