Changeset 1177
- Timestamp:
- 02/09/10 07:37:33 (2 years ago)
- Location:
- trunk/unxsISP/interfaces/customer
- Files:
-
- 9 added
- 1 modified
-
registration.c (modified) (3 diffs)
-
templates-english/RegistrationCompleted.Body (added)
-
templates-english/RegistrationDone.Body (added)
-
templates-english/RegistrationMail0 (added)
-
templates-english/RegistrationMail1 (added)
-
templates-english/RegistrationNotFound.Body (added)
-
templates-french/RegistrationDone.Body (added)
-
templates-french/RegistrationMail0 (added)
-
templates-spanish/RegistrationDone.Body (added)
-
templates-spanish/RegistrationMail0 (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/unxsISP/interfaces/customer/registration.c
r1176 r1177 536 536 //This function creates the tAuthorize record 537 537 //with a random password 538 char cGenPassword[10 ]={""};538 char cGenPassword[100]={""}; 539 539 540 540 to64(&cGenPassword[0],rand(),6); … … 544 544 LowerCase(cFirstName); 545 545 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())", 548 549 cFirstName 549 550 ,cLastName … … 556 557 557 558 cFirstName[0]=toupper(cFirstName[0]); 558 559 559 560 }//void GenerateLoginInfo(void) 560 561
