Logout feature can be added.
Closed this issue · 3 comments
metavinayak commented
To be integrated in home.html (Remove Login,add Logout)
The relevant backend code is present in auth.py.
@auth.route('/logout') # define logout path
@login_required
def logout(): #define the logout function
logout_user()
return redirect(url_for('main.index'))
ainy-123 commented
To be integrated in home.html (Remove Login,add Logout) The relevant backend code is present in auth.py.
@auth.route('/logout') # define logout path @login_required def logout(): #define the logout function logout_user() return redirect(url_for('main.index'))
Can I take this up to contribute for hacktoberfest?
metavinayak commented
To be integrated in home.html (Remove Login,add Logout) The relevant backend code is present in auth.py.
@auth.route('/logout') # define logout path @login_required def logout(): #define the logout function logout_user() return redirect(url_for('main.index'))
Can I take this up to contribute for hacktoberfest?
Sorry but this repository is meant to be a college project.So we'll do it.
metavinayak commented
Closed via 23ad21e