Skip to content

Commit

Permalink
Update Authentication.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
semant1cs committed Nov 17, 2023
1 parent f1c00c4 commit b9999fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/components/authentication/Authentication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import CustomButton from "../../UIComponents/customButton/CustomButton.tsx";
import CustomCheckbox from "../../UIComponents/customCheckbox/CustomCheckbox.tsx";
import authStore from "../../store/authStore.ts";
import {observer} from "mobx-react-lite";
import axios from "axios";

const Authentication: React.FC = observer(() => {
const navigateTo = useNavigate()
Expand All @@ -14,7 +15,13 @@ const Authentication: React.FC = observer(() => {
setIsPasswordShow(!isPasswordShows)
}


const signIn = () => {
axios.post("https://localhost:8000/auth/register/", {
username: "adasdasdasd",
email: "asdasdsa@gmail.com",
password: "asdasdasdsadsa"
}, {withCredentials: false}).catch(() => console.log(1))
authStore.signInUser()
navigateTo('/map')
}
Expand Down

0 comments on commit b9999fd

Please sign in to comment.