mirror of
https://github.com/yhl452493373/frps-panel.git
synced 2026-04-04 14:27:00 +08:00
preliminary write tokens to config with toml
This commit is contained in:
@@ -22,10 +22,9 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
UserFormatReg = regexp.MustCompile("^\\w+$")
|
||||
TokenFormatReg = regexp.MustCompile("^[\\w!@#$%^&*()]+$")
|
||||
TrimAllSpaceReg = regexp.MustCompile("[\\n\\t\\r\\s]")
|
||||
TrimBreakLineReg = regexp.MustCompile("[\\n\\t\\r]")
|
||||
UserFormatReg = regexp.MustCompile("^\\w+$")
|
||||
TokenFormatReg = regexp.MustCompile("^[\\w!@#$%^&*()]+$")
|
||||
TrimAllSpaceReg = regexp.MustCompile("[\\n\\t\\r\\s]")
|
||||
)
|
||||
|
||||
type Response struct {
|
||||
@@ -116,9 +115,3 @@ type TokenEnable struct {
|
||||
func (e *HTTPError) Error() string {
|
||||
return e.Err.Error()
|
||||
}
|
||||
|
||||
func (c *HandleController) TokensList() Tokens {
|
||||
return Tokens{
|
||||
c.Tokens,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user