Skip to content

Commit

Permalink
Merge branch 'pu/cw/loginMFA' into 'main'
Browse files Browse the repository at this point in the history
fix(Tinebase): mfa probs with new login box

See merge request tine20/tine20!6480
  • Loading branch information
corneliusweiss committed Jan 23, 2025
2 parents 8d4fa4c + b72aa2d commit b14655e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tine20/Tinebase/js/LoginPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,11 @@ Tine.Tinebase.LoginPanel = Ext.extend(Ext.BoxComponent, {
console.log(e.reason, e.message)
if (e.name === 'AbortError') {
console.debug(e.reason)
} else{
} else if (e.name === 'NotAllowedError') {
console.debug(e)
// @TODO: disable passkey login
// @TODO2 disable passkey login if passwordless login is not configured as well
} else {
console.assert(e.message)
if (await Ext.MessageBox.show({
icon: Ext.MessageBox.WARNING,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const passwordFieldRef = ref()

const getValue = () => passwordFieldRef.value?.getValue() || ''

const disableok = computed(() => props.allowBlank ? false : passwordFieldRef.value?.getValue().length === 0)
const disableok = computed(() => props.allowBlank ? false : passwordFieldRef.value?.getValue()?.length === 0)

const initialFocus = computed(() => passwordFieldRef.value.$inputEl)

Expand Down

0 comments on commit b14655e

Please sign in to comment.