Rev 11237 | Rev 13021 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11237 | Rev 12619 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | 2 | ||
3 | !if $pass!=$empty and $pass notsametext $pass2 |
3 | !if $pass!=$empty and $pass notsametext $pass2 |
4 | login= |
4 | login= |
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 |
Line 26... | Line 26... | ||
26 | email=$up_email |
26 | email=$up_email |
27 | !endif |
27 | !endif |
28 | 28 | ||
29 | !if $login=$empty or $lastname=$empty or $firstname=$empty or \ |
29 | !if $login=$empty or $lastname=$empty or $firstname=$empty or \ |
30 | ($new_user=yes and $pass=$empty) |
30 | ($new_user=yes and $pass=$empty) |
31 | login= |
31 | login= |
32 | error=empty_data |
32 | error=empty_data |
33 | !exit |
33 | !exit |
34 | !endif |
34 | !endif |
35 | !set login_char=!charcnt $login |
35 | !set login_char=!charcnt $login |
36 | !if $login_char=3 |
36 | !if $login_char=3 |
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 | error=user_exists $login |
43 | login= |
43 | login= |
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 |
49 | !exit |
49 | !exit |
50 | !endif |
50 | !endif |
51 | 51 | ||
52 | !if $new_user=yes or $pass!=$empty |
52 | !if $new_user=yes or $pass!=$empty |
53 | up_password=$pass |
53 | up_password=$pass |
54 | !endif |
54 | !endif |
55 | 55 | ||
56 | test=!defof user_exists in $classdir1/.users/.$login |
56 | test=!defof user_exists in $classdir1/.users/.$login |
57 | !if $test=yes |
57 | !if $test=yes |
58 | login= |
58 | login= |
59 | error=user_deleted |
59 | error=user_deleted |
60 | !exit |
60 | !exit |
61 | !endif |
61 | !endif |
62 | 62 | ||
63 | up_lastname=$lastname |
63 | up_lastname=$lastname |
64 | up_firstname=$firstname |
64 | up_firstname=$firstname |
65 | up_email=$email |
65 | up_email=$email |
Line 68... | Line 68... | ||
68 | 68 | ||
69 | replacelist=external_auth,supervise,participate,email |
69 | replacelist=external_auth,supervise,participate,email |
70 | !read adm/class/adduser $login |
70 | !read adm/class/adduser $login |
71 | 71 | ||
72 | !if $bad!=$empty |
72 | !if $bad!=$empty |
73 | error=bad_definition |
73 | error=bad_definition |
74 | !exit |
74 | !exit |
75 | !endif |
75 | !endif |
76 | 76 |