bernd commited on 2007-11-16 16:21:32
Zeige 1 geänderte Dateien mit 6 Einfügungen und 0 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@786 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... |
@@ -58,7 +58,10 @@ function create_jabber_account($local, $domain, $password) |
| 58 | 58 |
$local = mysql_real_escape_string( filter_input_username($local) ); |
| 59 | 59 |
$domain = (int) $domain; |
| 60 | 60 |
if (! valid_jabber_password($password)) |
| 61 |
+ {
|
|
| 61 | 62 |
input_error('Das Passwort enthält Zeichen, die aufgrund technischer Beschränkungen momentan nicht benutzt werden können.');
|
| 63 |
+ return; |
|
| 64 |
+ } |
|
| 62 | 65 |
$password = mysql_real_escape_string( $password ); |
| 63 | 66 |
|
| 64 | 67 |
if ($domain > 0) |
| ... | ... |
@@ -96,7 +99,10 @@ function change_jabber_password($id, $password) |
| 96 | 99 |
$customerno = (int) $_SESSION['customerinfo']['customerno']; |
| 97 | 100 |
$id = (int) $id; |
| 98 | 101 |
if (! valid_jabber_password($password)) |
| 102 |
+ {
|
|
| 99 | 103 |
input_error('Das Passwort enthält Zeichen, die aufgrund technischer Beschränkungen momentan nicht benutzt werden können.');
|
| 104 |
+ return; |
|
| 105 |
+ } |
|
| 100 | 106 |
$password = mysql_real_escape_string( $password ); |
| 101 | 107 |
|
| 102 | 108 |
db_query("UPDATE jabber.accounts SET password='{$password}' WHERE customerno={$customerno} AND id={$id} LIMIT 1");
|
| 103 | 109 |