Skip to content

Better validation for token names #3161

Open
openhab/openhab-core
#4782
@mueller-ma

Description

@mueller-ma

The problem

openHAB user tokens may only contain alphanumeric chars. When creating a new token this requirement isn't mentioned here:

Image

When the user clicks the create button, an error is shown on the next page.

Your suggestion

Keep that validation, but make it impossible to enter non-alphanumeric chars, so no page reload is required to get this feedback.

Your environment

runtimeInfo:
  version: 4.3.4
  buildString: Release Build
locale: de-DE

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions