Rev 10432 | Rev 15324 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | login=!word 1 of $login |
||
3 | passwd=!word 1 of $passwd |
||
4 | !if $login=$empty or $passwd=$empty |
||
15295 | bpr | 5 | !if $login$passwd!=$empty |
6 | error=bad_auth |
||
7 | !endif |
||
8 | login= |
||
9 | !exit |
||
23 | reyssat | 10 | !endif |
11 | |||
12 | n=!recordcnt wimshome/log/.developers |
||
13 | !for i=1 to $n |
||
15295 | bpr | 14 | r=!record $i of wimshome/log/.developers |
15 | passwc=!passcrypt $passwd |
||
16 | !distribute lines $r into ll,pp,nn,ee |
||
17 | !if $ll=$login |
||
18 | pp=!passcrypt $pp |
||
19 | !if $pp=$passwc |
||
20 | auth_login=$ll |
||
21 | auth_passwd=$pp |
||
22 | auth_name=$nn |
||
23 | auth_email=$ee |
||
24 | wims_module_log=auth $login |
||
25 | sesdir=!translate internal _ to $ $ in $wims_sesdir |
||
26 | sesdir=!word 1 of $sesdir |
||
27 | !setdef wims_developer=$login\ |
||
28 | wims_name=$auth_name\ |
||
29 | wims_devfirstname=$(auth_name[1])\ |
||
30 | wims_devlastname=$(auth_name[2])\ |
||
31 | wims_email=$auth_email\ |
||
10432 | bpr | 32 | in wimshome/$sesdir/var.stat |
15295 | bpr | 33 | !if $wims_class!=$empty and $wims_user!=$empty |
34 | !setdef !set wims_developer=$login,$pp in $userdef |
||
35 | !endif |
||
36 | devdir=modules/devel/$auth_login |
||
37 | job=modname |
||
38 | !changeto $job.proc |
||
39 | !endif |
||
23 | reyssat | 40 | !endif |
41 | !next i |
||
42 | |||
43 | error=bad_auth |
||
44 | login= |