feat: add 189cloud driver
This commit is contained in:
@ -130,9 +130,9 @@ func Generate2FA(c *gin.Context) {
|
||||
// to base64
|
||||
var buf bytes.Buffer
|
||||
png.Encode(&buf, img)
|
||||
base64 := base64.StdEncoding.EncodeToString(buf.Bytes())
|
||||
b64 := base64.StdEncoding.EncodeToString(buf.Bytes())
|
||||
common.SuccessResp(c, gin.H{
|
||||
"qr": "data:image/png;base64," + base64,
|
||||
"qr": "data:image/png;base64," + b64,
|
||||
"secret": key.Secret(),
|
||||
})
|
||||
}
|
||||
|
@ -2,17 +2,18 @@ package handles
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
"github.com/alist-org/alist/v3/internal/conf"
|
||||
"github.com/alist-org/alist/v3/internal/setting"
|
||||
"github.com/alist-org/alist/v3/server/common"
|
||||
"github.com/gin-gonic/gin"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func Favicon(c *gin.Context) {
|
||||
c.Redirect(302, setting.GetByKey(conf.Favicon))
|
||||
c.Redirect(302, setting.GetStr(conf.Favicon))
|
||||
}
|
||||
|
||||
func Plist(c *gin.Context) {
|
||||
|
Reference in New Issue
Block a user