mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
returning account guid in attach request
This commit is contained in:
parent
3611530f11
commit
91e7a242f2
@ -3230,9 +3230,12 @@ components:
|
|||||||
LoginAccess {
|
LoginAccess {
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
|
- guid
|
||||||
- appToken
|
- appToken
|
||||||
- created
|
- created
|
||||||
properties:
|
properties:
|
||||||
|
guid:
|
||||||
|
type: string
|
||||||
appToken:
|
appToken:
|
||||||
type: string
|
type: string
|
||||||
created:
|
created:
|
||||||
|
@ -55,6 +55,7 @@ func AddAccountApp(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
login := LoginAccess{
|
login := LoginAccess{
|
||||||
|
GUID: account.GUID,
|
||||||
AppToken: account.GUID + "." + access,
|
AppToken: account.GUID + "." + access,
|
||||||
Created: app.Created,
|
Created: app.Created,
|
||||||
}
|
}
|
||||||
|
@ -318,6 +318,8 @@ type IDList struct {
|
|||||||
|
|
||||||
//LoginAccess response object when app is associated
|
//LoginAccess response object when app is associated
|
||||||
type LoginAccess struct {
|
type LoginAccess struct {
|
||||||
|
GUID string `json:"guid"`
|
||||||
|
|
||||||
AppToken string `json:"appToken"`
|
AppToken string `json:"appToken"`
|
||||||
|
|
||||||
Created int64 `json:"created"`
|
Created int64 `json:"created"`
|
||||||
|
Loading…
Reference in New Issue
Block a user