catalogApp.py
def disconnect():
    '''
    Disconnects a user based on login provider.
    '''
    if 'provider' in login_session:
        if login_session['provider'] == 'google':
            gdisconnect()
            del login_session['gplus_id']
            del login_session['credentials']
        if login_session['provider'] == 'facebook':
            fbdisconnect()
            del login_session['facebook_id']
        del login_session['username']
        del login_session['email']
        del login_session['picture']
        del login_session['user_id']
        del login_session['provider']
        flash("You have successfully been logged out.")
        return redirect(url_for('showCategories'))
    else:
        flash("You were not logged in")
        return redirect(url_for('showCategories'))

    Disconnects a user based on login provider.
    
Disconnects a user based on login provider.
Disconnects a user based on login provider .
def disconnect():
    if 'provider' in login_session:
        if login_session['provider'] == 'google':
            gdisconnect()
            del login_session['gplus_id']
            del login_session['credentials']
        if login_session['provider'] == 'facebook':
            fbdisconnect()
            del login_session['facebook_id']
        del login_session['username']
        del login_session['email']
        del login_session['picture']
        del login_session['user_id']
        del login_session['provider']
        flash("You have successfully been logged out.")
        return redirect(url_for('showCategories'))
    else:
        flash("You were not logged in")
        return redirect(url_for('showCategories'))
def disconnect ( ) : if 'provider' in login_session : if login_session [ 'provider' ] == 'google' : gdisconnect ( ) del login_session [ 'gplus_id' ] del login_session [ 'credentials' ] if login_session [ 'provider' ] == 'facebook' : fbdisconnect ( ) del login_session [ 'facebook_id' ] del login_session [ 'username' ] del login_session [ 'email' ] del login_session [ 'picture' ] del login_session [ 'user_id' ] del login_session [ 'provider' ] flash ( "You have successfully been logged out." ) return redirect ( url_for ( 'showCategories' ) ) else : flash ( "You were not logged in" ) return redirect ( url_for ( 'showCategories' ) )
Disconnects a user based on login provider.
Disconnects a user based on login provider .
'''
    Disconnects a user based on login provider.
    '''