fac-15 / schmidt-authentication-project

authentication with cookies and jwt
0 stars 0 forks source link

Home button on login page #24

Open Oliversw opened 5 years ago

Oliversw commented 5 years ago

Leads to an "Error registering" error.

I think that because the button has a "POST" method, it automatically tried to register the user when clicked. Also I think that you don't need to wrap it in a form, since it's not actually taking in any data.

There is also an extra </form> above the login button form which can be deleted!

boi87 commented 5 years ago

Hi Oli, I was sure someone would've appreciated my home button in the login page!

Anyway, I really don't know why it's got a POST method. On Staging it should be

    <button onclick="location.href = '/'">HOME</button>

How Strage!