improve: never automatically create an account for webui client
This commit is contained in:
parent
9bded04dfd
commit
bcbd2c7f0d
@ -18,7 +18,7 @@ const loginController: RequestHandler = async (request, response) => {
|
||||
|
||||
const account = await Account.findOne({ email: loginRequest.email }); //{ _id: 0, __v: 0 }
|
||||
|
||||
if (!account && config.autoCreateAccount) {
|
||||
if (!account && config.autoCreateAccount && loginRequest.ClientType != "webui") {
|
||||
try {
|
||||
const newAccount = await createAccount({
|
||||
email: loginRequest.email,
|
||||
|
@ -15,7 +15,7 @@ function loginFromLocalStorage() {
|
||||
s: "W0RFXVN0ZXZlIGxpa2VzIGJpZyBidXR0cw==", // signature of some kind
|
||||
lang: "en",
|
||||
date: 1501230947855458660, // ???
|
||||
ClientType: "",
|
||||
ClientType: "webui",
|
||||
PS: "W0RFXVN0ZXZlIGxpa2VzIGJpZyBidXR0cw==" // anti-cheat data
|
||||
})
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user