mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 09:17:30 -05:00
fixed admin
This commit is contained in:
@@ -42,8 +42,9 @@ const Login = (props) => {
|
||||
const loginSubmit = async (event) => {
|
||||
event.preventDefault();
|
||||
const result = await dispatch(loginUser({ email, password })).unwrap();
|
||||
const user = result.user;
|
||||
if (result.success) {
|
||||
if ((pathname != "/terms") && (terms != 1.1)) {
|
||||
if ((pathname != "/terms") && (user.terms != 1.1)) {
|
||||
navigate("/terms")
|
||||
} else if (nextLocation) {
|
||||
switch (nextLocation) {
|
||||
|
||||
Reference in New Issue
Block a user