mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
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:
1 parent
d39b525b07
commit
a7dedcd3b7
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user