Skip to content

Commit

Permalink
Create .env files from action
Browse files Browse the repository at this point in the history
  • Loading branch information
basshamut committed Jun 27, 2024
1 parent afb3b40 commit 4530729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/forms/login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default function Login() {
const navigate = useNavigate()
const [user, setUser] = useState("")
const [password, setPassword] = useState("")
const domain = import.meta.env.VITE_API_URL

function validateEmail(email) {
const re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
Expand All @@ -21,6 +20,7 @@ export default function Login() {

function doLogin() {
if (validateEmail(user)) {
const domain = import.meta.env.VITE_API_URL
fetch(domain + '/api/users/login', {
method: 'POST',
headers: {
Expand Down

0 comments on commit 4530729

Please sign in to comment.