Skip to content

Conversation

fit2bot
Copy link
Contributor

@fit2bot fit2bot commented Apr 7, 2025

fix: Optimize UserConfirmDialog to send code via email

@fit2bot fit2bot requested a review from a team April 7, 2025 12:44
sendSMSCode() {
this.$axios.post(`/api/v1/authentication/mfa/select/`, { type: 'sms' }).then(res => {
sendCode() {
this.$axios.post(`/api/v1/authentication/mfa/select/`, { type: this.subTypeSelected }).then(res => {
this.$message.success(this.$tc('VerificationCodeSent'))
let time = 60
this.smsBtnDisabled = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code you provided has some inconsistencies and minor issues:

  1. In "logout", window.location.href should be a relative path instead of absolute path, e.g., /app/home.
  2. The logic inside each button click event handler is missing. For example: <button @click="...">...</button> needs to complete the event binding before its click handler.

For improvements:

  1. Make sure all events bind properly.
  2. Check for more detailed documentation and official examples if needed (e.g., Vuetify, Vue Router API).

Copy link

sonarqubecloud bot commented Apr 7, 2025

@BaiJiangJie BaiJiangJie merged commit 61bb8c0 into dev Apr 8, 2025
6 checks passed
@BaiJiangJie BaiJiangJie deleted the pr@dev@fix_send_code_by_email branch April 8, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants