Give more detailed no such user error
This commit is contained in:
parent
f9453612d3
commit
a21ec5e3cc
2 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
import 'dart:convert';
|
||||
|
||||
import 'package:zontreck/Constants.dart';
|
||||
import 'package:zontreck/pages/OpenSim.dart';
|
||||
|
||||
import 'Settings.dart';
|
||||
|
@ -269,6 +270,7 @@ class C2SLoginPacket implements IPacket {
|
|||
return json.encode({
|
||||
"first": first,
|
||||
"last": last,
|
||||
"clientKey": Constants.CLIENTPSK,
|
||||
"type": getType(),
|
||||
"password": password
|
||||
});
|
||||
|
|
|
@ -11,7 +11,7 @@ $last = $js['last'];
|
|||
$password = $js["password"];
|
||||
|
||||
// Password is hashed
|
||||
// Compare against hash in database + : md5(salt)
|
||||
// Compare against hash in database + : (salt)
|
||||
$DB = get_DB();
|
||||
|
||||
$id = NULLKEY;
|
||||
|
@ -64,7 +64,7 @@ if($clientKey == CLIENTPSK) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
$reason = "No such user";
|
||||
$reason = "No such user ($first.$last) found";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue