@@ -20,8 +20,8 @@ const expiresToken = 7 * 24 * 60 * 60 // 7 Days
20
20
21
21
/*
22
22
Create the main directory
23
- direktori akan dibikin otomatis ketika login ,
24
- karna direktori ada yang menggunakan User ID
23
+ The directory will be created automatically when logged in ,
24
+ because there is a directory that uses a User ID
25
25
*/
26
26
async function createDirectory ( UserId : string ) {
27
27
const pathDirectory = [
@@ -75,7 +75,7 @@ class AuthService {
75
75
76
76
readHTMLFile ( pathTemplate , ( error : Error , html : any ) => {
77
77
if ( error ) {
78
- throw new ResponseError . NotFound ( 'Email Template tidak ditemukan! ' )
78
+ throw new ResponseError . NotFound ( 'email template not found ' )
79
79
}
80
80
81
81
const template = handlebars . compile ( html )
@@ -85,7 +85,7 @@ class AuthService {
85
85
86
86
return {
87
87
message :
88
- 'Registrasi berhasil, Check email Anda untuk langkah selanjutnya! ' ,
88
+ 'registration is successful, check your email for the next steps ' ,
89
89
data,
90
90
}
91
91
}
@@ -100,7 +100,7 @@ class AuthService {
100
100
} )
101
101
102
102
if ( ! userData ) {
103
- throw new ResponseError . NotFound ( 'Data tidak ditemukan! ' )
103
+ throw new ResponseError . NotFound ( 'data not found or has been deleted ' )
104
104
}
105
105
106
106
/* User active proses login */
@@ -134,12 +134,12 @@ class AuthService {
134
134
}
135
135
}
136
136
137
- throw new ResponseError . BadRequest ( 'Email atau password salah !' )
137
+ throw new ResponseError . BadRequest ( 'incorrect email or password !' )
138
138
}
139
139
140
140
/* User not active return error confirm email */
141
141
throw new ResponseError . BadRequest (
142
- 'Please check your email account to verify your email and continue the registration process.'
142
+ 'please check your email account to verify your email and continue the registration process.'
143
143
)
144
144
}
145
145
0 commit comments