Skip to content

Commit 3bceed8

Browse files
authored
Merge pull request #312 from TaloDev/develop
Release 0.36.1
2 parents d90270c + 515e593 commit 3bceed8

File tree

6 files changed

+39
-31
lines changed

6 files changed

+39
-31
lines changed

package-lock.json

Lines changed: 32 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "game-services",
3-
"version": "0.36.0",
3+
"version": "0.36.1",
44
"description": "",
55
"main": "src/index.ts",
66
"scripts": {

src/entities/player-auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export enum PlayerAuthErrorCode {
1212
IDENTIFIER_TAKEN = 'IDENTIFIER_TAKEN',
1313
MISSING_SESSION = 'MISSING_SESSION',
1414
INVALID_SESSION = 'INVALID_SESSION',
15-
NEW_PASSWORD_MATCHES_OLD_PASSWORD = 'NEW_PASSWORD_MATCHES_OLD_PASSWORD',
16-
NEW_EMAIL_MATCHES_OLD_EMAIL = 'NEW_EMAIL_MATCHES_OLD_EMAIL',
15+
NEW_PASSWORD_MATCHES_CURRENT_PASSWORD = 'NEW_PASSWORD_MATCHES_CURRENT_PASSWORD',
16+
NEW_EMAIL_MATCHES_CURRENT_EMAIL = 'NEW_EMAIL_MATCHES_CURRENT_EMAIL',
1717
PASSWORD_RESET_CODE_INVALID = 'PASSWORD_RESET_CODE_INVALID'
1818
}
1919

src/services/api/player-auth-api.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default class PlayerAuthAPIService extends APIService {
254254
if (isSamePassword) {
255255
req.ctx.throw(400, {
256256
message: 'Please choose a different password',
257-
errorCode: PlayerAuthErrorCode.NEW_PASSWORD_MATCHES_OLD_PASSWORD
257+
errorCode: PlayerAuthErrorCode.NEW_PASSWORD_MATCHES_CURRENT_PASSWORD
258258
})
259259
}
260260

@@ -291,7 +291,7 @@ export default class PlayerAuthAPIService extends APIService {
291291
if (isSameEmail) {
292292
req.ctx.throw(400, {
293293
message: 'Please choose a different email address',
294-
errorCode: PlayerAuthErrorCode.NEW_EMAIL_MATCHES_OLD_EMAIL
294+
errorCode: PlayerAuthErrorCode.NEW_EMAIL_MATCHES_CURRENT_EMAIL
295295
})
296296
}
297297

tests/services/_api/player-auth-api/changeEmail.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ describe('Player auth API service - change email', () => {
120120

121121
expect(res.body).toStrictEqual({
122122
message: 'Please choose a different email address',
123-
errorCode: 'NEW_EMAIL_MATCHES_OLD_EMAIL'
123+
errorCode: 'NEW_EMAIL_MATCHES_CURRENT_EMAIL'
124124
})
125125
})
126126
})

tests/services/_api/player-auth-api/changePassword.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ describe('Player auth API service - change password', () => {
120120

121121
expect(res.body).toStrictEqual({
122122
message: 'Please choose a different password',
123-
errorCode: 'NEW_PASSWORD_MATCHES_OLD_PASSWORD'
123+
errorCode: 'NEW_PASSWORD_MATCHES_CURRENT_PASSWORD'
124124
})
125125
})
126126
})

0 commit comments

Comments
 (0)