0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2025-09-11 12:24:27 +00:00

change auth header name, make auth basic work

This commit is contained in:
vx3r
2020-05-18 15:25:05 +09:00
parent 6e08b2818d
commit 7e2146a229
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import (
)
var (
AuthTokenHeaderName = "Authorization"
AuthTokenHeaderName = "x-wg-gen-web-auth"
// RegexpEmail check valid email
RegexpEmail = regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")
)