Skip to content

Commit 0dab41f

Browse files
feat: 大小写
1 parent 8bbc40c commit 0dab41f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/util/mfa/mfa.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func GetOtp(username string) (otp Otp, err error) {
2020
secret := gotp.RandomSecret(secretLength)
2121
otp.Secret = secret
2222
totp := gotp.NewDefaultTOTP(secret)
23-
uri := totp.ProvisioningUri(username, "Kubepi")
23+
uri := totp.ProvisioningUri(username, "KubePi")
2424
subImg, err := qrcode.Encode(uri, qrcode.Medium, 256)
2525
dist := make([]byte, 3000)
2626
base64.StdEncoding.Encode(dist, subImg)

0 commit comments

Comments
 (0)