minor typo fix: remove debug code and fix typo (#22539)
This commit is contained in:
@@ -27,19 +27,19 @@ class InvalidTokenError(BaseHTTPException):
|
||||
|
||||
class PasswordResetRateLimitExceededError(BaseHTTPException):
|
||||
error_code = "password_reset_rate_limit_exceeded"
|
||||
description = "Too many password reset emails have been sent. Please try again in 1 minutes."
|
||||
description = "Too many password reset emails have been sent. Please try again in 1 minute."
|
||||
code = 429
|
||||
|
||||
|
||||
class EmailChangeRateLimitExceededError(BaseHTTPException):
|
||||
error_code = "email_change_rate_limit_exceeded"
|
||||
description = "Too many email change emails have been sent. Please try again in 1 minutes."
|
||||
description = "Too many email change emails have been sent. Please try again in 1 minute."
|
||||
code = 429
|
||||
|
||||
|
||||
class OwnerTransferRateLimitExceededError(BaseHTTPException):
|
||||
error_code = "owner_transfer_rate_limit_exceeded"
|
||||
description = "Too many owner tansfer emails have been sent. Please try again in 1 minutes."
|
||||
description = "Too many owner transfer emails have been sent. Please try again in 1 minute."
|
||||
code = 429
|
||||
|
||||
|
||||
|
@@ -264,11 +264,9 @@ class OwnerTransfer(Resource):
|
||||
|
||||
transfer_token_data = AccountService.get_owner_transfer_data(args["token"])
|
||||
if not transfer_token_data:
|
||||
print(transfer_token_data, "transfer_token_data")
|
||||
raise InvalidTokenError()
|
||||
|
||||
if transfer_token_data.get("email") != current_user.email:
|
||||
print(transfer_token_data.get("email"), current_user.email)
|
||||
raise InvalidEmailError()
|
||||
|
||||
AccountService.revoke_owner_transfer_token(args["token"])
|
||||
|
@@ -111,7 +111,6 @@
|
||||
<p class="title">验证您的邮箱变更请求</p>
|
||||
<div class="description">
|
||||
<p class="content1">我们收到了一个变更您 Dify 账户关联邮箱地址的请求。</p>
|
||||
<p class="content2">我们收到了一个变更您 Dify 账户关联邮箱地址的请求。</p>
|
||||
<p class="content3">此验证码仅在接下来的5分钟内有效:</p>
|
||||
</div>
|
||||
<div class="code-content">
|
||||
|
@@ -143,7 +143,7 @@
|
||||
<div class="warning">Please note:</div>
|
||||
<ul class="warningList">
|
||||
<li>The ownership transfer will take effect immediately once confirmed and cannot be undone.</li>
|
||||
<li>You’ll become a admin member, and the new owner will have full control of the workspace.</li>
|
||||
<li>You’ll become an admin member, and the new owner will have full control of the workspace.</li>
|
||||
</ul>
|
||||
<p class="tips">If you didn’t make this request, please ignore this email or contact support immediately.</p>
|
||||
</div>
|
||||
|
@@ -108,7 +108,6 @@
|
||||
<p class="title">验证您的邮箱变更请求</p>
|
||||
<div class="description">
|
||||
<p class="content1">我们收到了一个变更您 Dify 账户关联邮箱地址的请求。</p>
|
||||
<p class="content2">我们收到了一个变更您 Dify 账户关联邮箱地址的请求。</p>
|
||||
<p class="content3">此验证码仅在接下来的5分钟内有效:</p>
|
||||
</div>
|
||||
<div class="code-content">
|
||||
|
@@ -140,7 +140,7 @@
|
||||
<div class="warning">Please note:</div>
|
||||
<ul class="warningList">
|
||||
<li>The ownership transfer will take effect immediately once confirmed and cannot be undone.</li>
|
||||
<li>You’ll become a admin member, and the new owner will have full control of the workspace.</li>
|
||||
<li>You’ll become an admin member, and the new owner will have full control of the workspace.</li>
|
||||
</ul>
|
||||
<p class="tips">If you didn’t make this request, please ignore this email or contact support immediately.</p>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user