metavinayak/CS207_project_2_blood_bank

Logout feature can be added.

Closed this issue · 3 comments

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'))

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?

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.

Closed via 23ad21e