1
2
3
4
5
6
7
8
9
10
11
12
13
| 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
|
>
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
| 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
|