Changeset 1177

Show
Ignore:
Timestamp:
02/09/10 07:37:33 (2 years ago)
Author:
Hugo
Message:

ispClient: save commit

Location:
trunk/unxsISP/interfaces/customer
Files:
9 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/unxsISP/interfaces/customer/registration.c

    r1176 r1177  
    536536        //This function creates the tAuthorize record 
    537537        //with a random password 
    538         char cGenPassword[10]={""}; 
     538        char cGenPassword[100]={""}; 
    539539 
    540540        to64(&cGenPassword[0],rand(),6); 
     
    544544        LowerCase(cFirstName); 
    545545        LowerCase(cLastName); 
    546  
    547         sprintf(gcQuery,"INSERT INTO tAuthorize SET cLabel='%s.%s',cPasswd='%s',uOwner=%u,uCreatedBy=1,uCreatedDate=UNIX_TIMESTAMP(NOW())", 
     546        sprintf(cUser,"%s.%s",cFirstName,cLastName); 
     547 
     548        sprintf(gcQuery,"INSERT INTO tAuthorize SET cLabel='%s.%s',cPasswd='%s',uPerm=1,uOwner=%u,uCreatedBy=1,uCreatedDate=UNIX_TIMESTAMP(NOW())", 
    548549                        cFirstName 
    549550                        ,cLastName 
     
    556557 
    557558        cFirstName[0]=toupper(cFirstName[0]); 
    558  
     559         
    559560}//void GenerateLoginInfo(void) 
    560561