mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 00:29:22 +09:00
fix(server): メールアドレス更新時にバリデーションが正しく行われていないのを修正
This commit is contained in:
parent
785c67ea8d
commit
b60c985203
@ -10,6 +10,14 @@
|
|||||||
You should also include the user name that made the change.
|
You should also include the user name that made the change.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## 13.x.x (unreleased)
|
||||||
|
|
||||||
|
### Improvements
|
||||||
|
-
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
- fix(server): メールアドレス更新時にバリデーションが正しく行われていないのを修正
|
||||||
|
|
||||||
## 13.8.1 (2023/02/26)
|
## 13.8.1 (2023/02/26)
|
||||||
|
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
|
@ -73,8 +73,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ps.email != null) {
|
if (ps.email != null) {
|
||||||
const available = await this.emailService.validateEmailForAccount(ps.email);
|
const res = await this.emailService.validateEmailForAccount(ps.email);
|
||||||
if (!available) {
|
if (!res.available) {
|
||||||
throw new ApiError(meta.errors.unavailable);
|
throw new ApiError(meta.errors.unavailable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user