Skip to content

Commit 3b0c659

Browse files
authored
Update AMP.php
Need to use client_id not id
1 parent 37b9dc5 commit 3b0c659

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/servers/AMP/AMP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ function AMP_CreateAccount(array $params)
283283
$firstinitial = $params['clientsdetails']['firstname'][0];
284284
$lastname = $params['clientsdetails']['lastname'];
285285
$clientid = str_pad($params['clientsdetails']['client_id'], 4, '0', STR_PAD_LEFT);
286-
$username = $firstinitial.$lastname.'#'.$id;
286+
$username = $firstinitial.$lastname.'#'.$client_id;
287287

288288
$password = sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
289289

0 commit comments

Comments
 (0)