diff --git a/auth.go b/auth.go index 5f4f2ed..ecec371 100755 --- a/auth.go +++ b/auth.go @@ -154,7 +154,7 @@ func AuthUserByPasswd(ctx *AuthCtx, username string, auth string, fname string) // ------------- End xs-local passwd auth routine(s) ----------- // AuthUserByToken checks user login information against an auth token. -// Auth tokens are stored in each user's $HOME/.xs_id and are requested +// Auth tokens are stored in each user's $HOME/.config/xs/.xs_id and are requested // via the -g option. // The function also check system /etc/passwd to cross-check the user // actually exists. @@ -172,9 +172,9 @@ func AuthUserByToken(ctx *AuthCtx, username string, connhostname string, auth st return false } - b, e := ctx.reader(fmt.Sprintf("%s/.xs_id", u.HomeDir)) + b, e := ctx.reader(fmt.Sprintf("%s/.config/xs/.xs_id", u.HomeDir)) if e != nil { - log.Printf("INFO: Cannot read %s/.xs_id\n", u.HomeDir) + log.Printf("INFO: Cannot read %s/.config/xs/.xs_id\n", u.HomeDir) return false }