fix tenant case sensitive
parent
711c50c609
commit
a4f813c440
|
@ -199,7 +199,7 @@ class App extends React.Component {
|
|||
value={loginForm.account}
|
||||
variant="standard"
|
||||
onChange={(e) => this.setLoginForm({ account: e.target.value })}
|
||||
onKeyDown={(e) => e.keyCode == 13 && this.login()}
|
||||
onKeyDown={(e) => e.keyCode === 13 && this.login()}
|
||||
/>
|
||||
<TextField
|
||||
autoFocus
|
||||
|
@ -211,7 +211,7 @@ class App extends React.Component {
|
|||
value={loginForm.password}
|
||||
variant="standard"
|
||||
onChange={(e) => this.setLoginForm({ password: e.target.value })}
|
||||
onKeyDown={(e) => e.keyCode == 13 && this.login()}
|
||||
onKeyDown={(e) => e.keyCode === 13 && this.login()}
|
||||
/>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
|
|
|
@ -12,6 +12,9 @@ export async function UserLogin(loginForm) {
|
|||
method: "POST",
|
||||
});
|
||||
var result = await response.json();
|
||||
result.permissionPages = result.permissionPages.map((permission) =>
|
||||
permission.toLowerCase()
|
||||
);
|
||||
return result;
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
|
|
Loading…
Reference in New Issue