1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: guess user timezone on signup

This commit is contained in:
Ferdinand Mütsch
2021-04-25 20:02:45 +02:00
parent 6973743f41
commit 75e61c0dc3
3 changed files with 13 additions and 1 deletions

View File

@ -76,8 +76,9 @@ func (srv *UserService) Count() (int64, error) {
func (srv *UserService) CreateOrGet(signup *models.Signup, isAdmin bool) (*models.User, bool, error) {
u := &models.User{
ID: signup.Username,
Email: signup.Email,
ApiKey: uuid.NewV4().String(),
Email: signup.Email,
Location: signup.Location,
Password: signup.Password,
IsAdmin: isAdmin,
}