From bbada328d52a186bf550099efe9f8a6c52158538 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Sat, 22 Jan 2022 23:58:56 +0100 Subject: [PATCH] Longer login/passwords --- lib/service/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/service/user.go b/lib/service/user.go index b38f01d..f107ad8 100644 --- a/lib/service/user.go +++ b/lib/service/user.go @@ -15,8 +15,8 @@ func (svc *LndhubService) CreateUser() (user *models.User, err error) { user = &models.User{} // generate user login/password (TODO: allow the user to choose a login/password?) - user.Login = randStringBytes(8) - password := randStringBytes(15) + user.Login = randStringBytes(20) + password := randStringBytes(20) // we only store the hashed password but return the initial plain text password in the HTTP response hashedPassword := security.HashPassword(password) user.Password = hashedPassword