Trim whitespace from token login in Web UI

Prevent accidentally copying spaces before and/or after the token when
pasting it into the login form from failing to log in.
This commit is contained in:
Hornwitser committed 2023-02-15 20:31:02 +01:00
1 parent d39b525b07
commit a7dedcd3b7
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ function TokenAuth(props) {
<Paragraph>If you have generated an authentication token from the master server, use that here.</Paragraph>
<Form
name="login"
onFinish={(values) => { props.setToken(values.token); }}
onFinish={(values) => { props.setToken(values.token.trim()); }}
layout="inline"
>
<Form.Item