catalogApp.py
def login_required(f):
    """
    Decorator function -- forces user to login by redirecting to login page.
    """
    @wraps(f)
    def decorated_function(*args, **kwargs):
        if 'user_id' not in login_session:
            return redirect(url_for('showLogin', next=request.url))
        return f(*args, **kwargs)
    return decorated_function

    Decorator function -- forces user to login by redirecting to login page.
    
Decorator function -- forces user to login by redirecting to login page.
Decorator function -- forces user to login by redirecting to login page .
def login_required(f):
    @wraps(f)
    def decorated_function(*args, **kwargs):
        if 'user_id' not in login_session:
            return redirect(url_for('showLogin', next=request.url))
        return f(*args, **kwargs)
    return decorated_function
def login_required ( f ) : @ wraps ( f ) def decorated_function ( * args , ** kwargs ) : if 'user_id' not in login_session : return redirect ( url_for ( 'showLogin' , next = request . url ) ) return f ( * args , ** kwargs ) return decorated_function
Decorator function -- forces user to login by redirecting to login page.
Decorator function -- forces user to login by redirecting to login page .
"""
    Decorator function -- forces user to login by redirecting to login page.
    """
f