Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(webauthn): submit device name by pressing enter #45136

Merged
merged 1 commit into from
May 2, 2024

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented May 1, 2024

  • Resolves: none

Summary

When adding a Webauthn device the user has to input a name. The input field can now be submitted by pressing enter.

Best reviewed via https://github.com/nextcloud/server/pull/45136/files?w=1

Checklist

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
@st3iny st3iny added enhancement 3. to review Waiting for reviews labels May 1, 2024
@st3iny st3iny added this to the Nextcloud 30 milestone May 1, 2024
@st3iny st3iny self-assigned this May 1, 2024
Comment on lines +44 to +51
<NcTextField ref="nameInput"
class="new-webauthn-device__name"
:label="t('settings', 'Device name')"
:value.sync="name"
show-trailing-button
:trailing-button-label="t('settings', 'Add')"
trailing-button-icon="arrowRight"
@trailing-button-click="submit" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can even have sanitization like min and max lenght now that you wrapped this int a form :)
I don't know what the backend accepts 😉

@st3iny st3iny merged commit 197e6dc into master May 2, 2024
104 checks passed
@st3iny st3iny deleted the feat/webauthn/submit-device-name branch May 2, 2024 16:01
@blizzz blizzz mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
Development

Successfully merging this pull request may close these issues.

3 participants