projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Forbids passwords having only one type of characters, renames password related files.
[platal.git]
/
modules
/
register.php
diff --git
a/modules/register.php
b/modules/register.php
index
9c90e09
..
34c3ed1
100644
(file)
--- a/
modules/register.php
+++ b/
modules/register.php
@@
-248,7
+248,7
@@
class RegisterModule extends PLModule
}
$page->changeTpl('register/step' . $subState->i('step') . '.tpl');
}
$page->changeTpl('register/step' . $subState->i('step') . '.tpl');
- $page->addJsLink('
motdepasse
.js');
+ $page->addJsLink('
password
.js');
if (isset($error)) {
$page->trigError($error);
}
if (isset($error)) {
$page->trigError($error);
}
@@
-329,7
+329,7
@@
class RegisterModule extends PLModule
//
XDB::execute("UPDATE accounts
SET password = {?}, state = 'active',
//
XDB::execute("UPDATE accounts
SET password = {?}, state = 'active',
- registration_date = NOW()
+ registration_date = NOW()
, email = NULL
WHERE uid = {?}", $password, $uid);
XDB::execute("UPDATE profiles
SET birthdate = {?}, last_change = NOW()
WHERE uid = {?}", $password, $uid);
XDB::execute("UPDATE profiles
SET birthdate = {?}, last_change = NOW()
@@
-395,7
+395,7
@@
class RegisterModule extends PLModule
$mymail->send();
// Index the user, to allow her to appear in searches.
$mymail->send();
// Index the user, to allow her to appear in searches.
- Profile::rebuildSearchTokens($
u
id);
+ Profile::rebuildSearchTokens($
p
id);
// Notify other users which were watching for her arrival.
XDB::execute('REPLACE INTO contacts (uid, contact)
// Notify other users which were watching for her arrival.
XDB::execute('REPLACE INTO contacts (uid, contact)