Ignore:
Timestamp:
04/29/25 14:46:06 (37 hours ago)
Author:
Aleksandarj03 <138524804+Aleksandarj03@…>
Branches:
master
Children:
7d8eeab
Parents:
e0ee7c8
Message:

Rewrote logic for login and register and added Add Restaurant functionality for the admin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ReserveNGo-frontend/src/components/Project/login_.vue

    re0ee7c8 rdad25fc  
    2828      await fetch(this.url, {
    2929        method: 'POST',
    30         headers: { 'Content-Type': 'application/x-www-form-urlencoded'},
    31         body: new URLSearchParams({
    32             email: this.form_info.email,
    33             password: this.form_info.password
     30        headers: { 'Content-Type': 'application/json'},
     31        body: JSON.stringify({
     32          email: this.form_info.email,
     33          password: this.form_info.password,
    3434        })
    3535      }).then((response) => response.json())
Note: See TracChangeset for help on using the changeset viewer.