Longer timeout, more tracking on login
This commit is contained in:
parent
03849e55f1
commit
7ba66997b4
2 changed files with 2 additions and 1 deletions
|
|
@ -212,6 +212,7 @@ func validatePassword(password, hash string) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func validateUser(ctx context.Context, username string, password string) (*platform.User, error) {
|
func validateUser(ctx context.Context, username string, password string) (*platform.User, error) {
|
||||||
|
log.Info().Str("username", username).Msg("begin validateUser. Hashing...")
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
passwordHash, err := HashPassword(password)
|
passwordHash, err := HashPassword(password)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ class ApiClient {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.client = axios.create({
|
this.client = axios.create({
|
||||||
timeout: 10000,
|
timeout: 30000,
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue