feat(invite): more work on invite, basic creation works, added new tab directive from angular-ui and made new tab style, #2353

This commit is contained in:
Torkel Ödegaard
2015-07-17 09:51:34 +02:00
parent 444807c35b
commit 0ffcce1b5d
20 changed files with 488 additions and 57 deletions
+15 -13
View File
@@ -10,15 +10,16 @@ var (
ErrTempUserNotFound = errors.New("User not found")
)
// TempUser holds data for org invites and new sign ups
// TempUser holds data for org invites and unconfirmed sign ups
type TempUser struct {
Id int64
OrgId int64
Version int
Email string
Name string
Role string
IsInvite bool
Id int64
OrgId int64
Version int
Email string
Name string
Role string
IsInvite bool
InvitedByUserId int64
EmailSent bool
EmailSentOn time.Time
@@ -32,11 +33,12 @@ type TempUser struct {
// COMMANDS
type CreateTempUserCommand struct {
Email string
Name string
OrgId int64
IsInvite bool
Code string
Email string
Name string
OrgId int64
IsInvite bool
InvitedByUserId int64
Code string
Result *TempUser
}