SoniDhenuva / soni_2025

https://sonidhenuva.github.io/soni_2025/
Apache License 2.0
0 stars 0 forks source link

lecture - 11/22 #15

Open SoniDhenuva opened 1 week ago

SoniDhenuva commented 1 week ago

conditioanls for logins when login-> cookies are added (signals that u are logged in)

local strogae -> authenticated (set true) when logged in

MENU FOR LOGIN IN: home.html -> includes/nav header.html -> includes/theme/minima login.js - assests/js/api

home.html menu is guarded with authentication code

Header.html mibnima doesnt support login --> need to drag the files head.html -> comeing from the remote theme in github All the head and body tags are in base.html in minima(thats why u dont need head and body tags in your own code)

login.js go to backend and fetch data, if it has data -> shows the data and (becomes authenticated) using innerHMTL to change the names (of the logined in person) of login to the name of the user