1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-20 21:59:42 +02:00

Activate newly added users

Fixes #101
This commit is contained in:
Harvey Kandola 2017-07-17 11:50:01 +01:00
parent 3d6727ff4c
commit d4062db02d
2 changed files with 4 additions and 2 deletions

View file

@ -147,12 +147,12 @@ func AddUser(w http.ResponseWriter, r *http.Request) {
// set up user account for the org
if addAccount {
var a entity.Account
a.RefID = util.UniqueID()
a.UserID = userID
a.OrgID = p.Context.OrgID
a.Editor = true
a.Admin = false
accountID := util.UniqueID()
a.RefID = accountID
a.Active = true
err = p.AddAccount(a)