Determining location with restrictions disabled, cleaned up.
This commit is contained in:
+1
-1
@@ -423,7 +423,7 @@ async function updatePassword(password, reqUser, reqSession) {
|
||||
.where('id', reqUser.id)
|
||||
.update('password', storedPassword);
|
||||
|
||||
const country = reqSession.country && await knex('countries').where('alpha2', reqSession.country).first();
|
||||
const country = reqSession.geo?.country && await knex('countries').where('alpha2', reqSession.geo.country).first();
|
||||
|
||||
await sendEmails([{
|
||||
template: 'password',
|
||||
|
||||
Reference in New Issue
Block a user