Python flask_login.current_user 模块,ping() 实例源码

我们从Python开源项目中,提取了以下7个代码示例,用于说明如何使用flask_login.current_user.ping()

项目:learning_flask2    作者:yuyilei    | 项目源码 | 文件源码
def before_request() :
    if current_user.is_authenticated() \
            current_user.ping()  # ????????????
            if  current_user.confirmed \
                and request.endpoint[:5] != 'auth.' :
                and request.endpoint != 'static' :
            return redirect(url_for('auth.unconfirmed'))
项目:Graduation_design    作者:mr-betterman    | 项目源码 | 文件源码
def before_request():
    if current_user.is_authenticated() and current_user.is_anonymous() is False:
        current_user.ping()
        if not current_user.confirmed and request.endpoint and request.endpoint[:4] == 'view' and request.endpoint != 'static':
            return redirect(url_for('unconfirmed'))
项目:LivroFlask    作者:antoniocsz    | 项目源码 | 文件源码
def before_request():
    if current_user.is_authenticated:
        current_user.ping()
        if not current_user.confirmed and request.endpoint[:5] != 'auth.' and request.endpoint != 'static':
            return redirect(url_for('auth.unconfirmed'))
项目:Ticlab    作者:St1even    | 项目源码 | 文件源码
def before_request():
    if current_user.is_authenticated:
        current_user.ping()
        if not current_user.confirmed and request.endpoint \
            and request.endpoint \
            and request.endpoint[:5] != 'auth.' \
            and request.endpoint != 'static':
            return redirect(url_for('auth.unconfirmed'))
项目:blog    作者:hukaixuan    | 项目源码 | 文件源码
def before_request():
    if current_user.is_authenticated:
        current_user.ping()     # ??????????
        if not current_user.confirmed \
                and request.endpoint \
                and request.endpoint[:5] != 'auth.' \
                and request.endpoint != 'static':   #?????????????????????auth??????
            return redirect(url_for('auth.unconfirmed'))
项目:Faiwong-s-blog    作者:Fai-Wong    | 项目源码 | 文件源码
def before_request():
    if current_user.is_authenticated:
        current_user.ping()
        if not current_user.confirmed \
                and request.endpoint \
                and request.endpoint[:5] != 'auth.' \
                and request.endpoint != 'static':
            return redirect(url_for('auth.unconfirmed'))
项目:MyFlasky    作者:aliasxu    | 项目源码 | 文件源码
def before_request():
    if current_user.is_authenticated:
        current_user.ping()
        if not current_user.confirmed and request.endpoint and request.endpoint[:5] != 'auth.' and request.endpoint != 'static':
            return redirect(url_for('auth.unconfirmed'))