Give more detailed no such user error

This commit is contained in:
zontreck 2024-05-16 03:36:58 -07:00
parent f9453612d3
commit a21ec5e3cc
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,6 @@
import 'dart:convert'; import 'dart:convert';
import 'package:zontreck/Constants.dart';
import 'package:zontreck/pages/OpenSim.dart'; import 'package:zontreck/pages/OpenSim.dart';
import 'Settings.dart'; import 'Settings.dart';
@ -269,6 +270,7 @@ class C2SLoginPacket implements IPacket {
return json.encode({ return json.encode({
"first": first, "first": first,
"last": last, "last": last,
"clientKey": Constants.CLIENTPSK,
"type": getType(), "type": getType(),
"password": password "password": password
}); });

View file

@ -11,7 +11,7 @@ $last = $js['last'];
$password = $js["password"]; $password = $js["password"];
// Password is hashed // Password is hashed
// Compare against hash in database + : md5(salt) // Compare against hash in database + : (salt)
$DB = get_DB(); $DB = get_DB();
$id = NULLKEY; $id = NULLKEY;
@ -64,7 +64,7 @@ if($clientKey == CLIENTPSK) {
} }
} }
else { else {
$reason = "No such user"; $reason = "No such user ($first.$last) found";
} }
} }