Commit cd77118d authored by Jarrod's avatar Jarrod 💬

Fix i18n thing

parent f8c27adb
Pipeline #1326 passed with stages
in 48 seconds
......@@ -21,8 +21,7 @@ module.exports = {
fn: async function ({ username, password }) {
const jwt = require('machinepack-jwt-ng')
const bcrypt = require('bcrypt')
let error = this.res.__('auth.invalid') // 'Invalid username or password'
let error = this.req.i18n.__('auth.invalid') // 'Invalid username or password'
let user = await User.findOne({ username })
.catch((err) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment