MobileBlur

Artifact [b25e852978]
Login

Artifact [b25e852978]

Artifact b25e852978f6a474af873696342a07784d7dbcfc:


from gluon.contrib.pam import authenticate

def pam_auth():
    """
    to use pam_login:
    from gluon.contrib.login_methods.pam_auth import pam_auth
    auth.settings.login_methods.append(pam_auth())
    """

    def pam_auth_aux(username, password):
        return authenticate(username, password)

    return pam_auth_aux