Rev 23 | Rev 5125 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | bad= |
2 | !if $pass!=$empty and $pass notsametext $pass2 |
||
3 | login= |
||
4 | error=pass_discord |
||
5 | !exit |
||
6 | !endif |
||
7 | |||
8 | !if $login=$empty or $lastname=$empty or $firstname=$empty or \ |
||
9 | ($new_user=yes and $pass=$empty) |
||
10 | login= |
||
11 | error=empty_data |
||
12 | !exit |
||
13 | !endif |
||
14 | |||
15 | test=!defof user_exists in $classdir1/.users/$login |
||
16 | !if $new_user=yes and $test=yes |
||
17 | login= |
||
18 | error=user_exists |
||
19 | !exit |
||
20 | !endif |
||
21 | |||
22 | !if $new_user=no and $test!=yes |
||
23 | error=bad_user |
||
24 | !exit |
||
25 | !endif |
||
26 | |||
27 | !if $new_user=yes or $pass!=$empty |
||
28 | up_password=$pass |
||
29 | !endif |
||
30 | |||
31 | test=!defof user_exists in $classdir1/.users/.$login |
||
32 | !if $test=yes |
||
33 | login= |
||
34 | error=user_deleted |
||
35 | !exit |
||
36 | !endif |
||
37 | |||
38 | up_lastname=$lastname |
||
39 | up_firstname=$firstname |
||
40 | up_email=$email |
||
41 | up_class=$wims_superclass |
||
42 | |||
43 | !read adm/class/adduser $login |
||
44 | |||
45 | !if $bad!=$empty |
||
46 | error=bad_definition |
||
47 | !exit |
||
48 | !endif |
||
49 |