Skip to content

Commit

Permalink
fix: Fix captcha style in login page
Browse files Browse the repository at this point in the history
  • Loading branch information
leoliu committed Jun 30, 2020
1 parent f588468 commit 0ef8a1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/public/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ input::-webkit-input-placeholder {
}

.captcha-wrapper > input {
width: 244px;
width: 150px;
}

@keyframes onAutoFillStart {
Expand Down
5 changes: 4 additions & 1 deletion server/views/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@

function refreshCaptha() {
$captcha_img &&
$captcha_img.setAttribute('src', '/captcha?refresh=true')
$captcha_img.setAttribute(
'src',
'/captcha?refresh=true&_=' + new Date().getTime()
)
}

function handleOAuthLogin(e) {
Expand Down

0 comments on commit 0ef8a1e

Please sign in to comment.