Rev 7403 | Rev 12619 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7403 | Rev 11237 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | error=pass_discord |
5 | error=pass_discord |
6 | !exit |
6 | !exit |
7 | !endif |
7 | !endif |
8 | 8 | ||
9 | !if $auth_method isitemof $auth_method_list |
9 | !if $auth_method isitemof $auth_method_list |
10 | !if $idp_method=ldap |
10 | !if $idp_method=ldap |
11 | !read adm/class/initldap |
11 | !read adm/class/initldap |
12 | !if $ldap_login!=$empty |
12 | !if $ldap_login!=$empty |
13 | !set login_method=$idp_method $ldap_login |
13 | !set login_method=$idp_method $ldap_login |
14 | !endif |
14 | !endif |
15 | !endif |
15 | !endif |
16 | up_external_auth=!lowercase $user_auth |
16 | up_external_auth=!lowercase $user_auth |
Line 37... | Line 37... | ||
37 | !set login=$(login)0 |
37 | !set login=$(login)0 |
38 | !endif |
38 | !endif |
39 | 39 | ||
40 | test=!defof user_exists in $classdir1/.users/$login |
40 | test=!defof user_exists in $classdir1/.users/$login |
41 | !if $new_user=yes and $test=yes |
41 | !if $new_user=yes and $test=yes |
- | 42 | error=user_exists $login |
|
42 | login= |
43 | login= |
43 | error=user_exists |
- | |
44 | !exit |
44 | !exit |
45 | !endif |
45 | !endif |
46 | 46 | ||
47 | !if $new_user=no and $test!=yes |
47 | !if $new_user=no and $test!=yes |
48 | error=bad_user |
48 | error=bad_user |