Nextrek
Diff Revisions
374
vs
378
for /Android/SmartCharging/endPoints/nightly/registrazione_utente.php
|
@@ -42,7 +42,7 @@ |
42 |
42 |
|
|
43 |
43 |
|
if ($params["avatar"] != "") { |
44 |
44 |
|
$imgExtention = substr(strrchr($params["avatar"],'.'),1); |
45 |
|
- |
$risposta["avatar_path"] = "./avatar/".sha1($strToHash)."-".strval(time()).".".$imgExtention; |
|
45 |
+ |
$risposta["avatar_name"] = uniqid().".".$imgExtention; |
46 |
46 |
|
} |
47 |
47 |
|
|
48 |
48 |
|
} |
|
@@ -50,7 +50,7 @@ |
50 |
50 |
|
{ |
51 |
51 |
|
echo $e->getMessage(); |
52 |
52 |
|
$risposta["return"] = 1; |
53 |
|
- |
$risposta["avatar_path"] = ""; |
|
53 |
+ |
$risposta["avatar_name"] = ""; |
54 |
54 |
|
} |
55 |
55 |
|
|
56 |
56 |
|
echo json_encode($risposta); |