mirror of
https://github.com/grafana/grafana.git
synced 2025-09-27 05:43:43 +08:00
feat(invite): more progress on completing invite form and actually creating a real user, #2353
This commit is contained in:
@ -45,6 +45,7 @@ func Register(r *macaron.Macaron) {
|
||||
|
||||
// invited
|
||||
r.Get("/api/user/invite/:code", wrap(GetInviteInfoByCode))
|
||||
r.Post("/api/user/invite/complete", bind(dtos.CompleteInviteForm{}), wrap(CompleteInvite))
|
||||
|
||||
// reset password
|
||||
r.Get("/user/password/send-reset-email", Index)
|
||||
@ -97,7 +98,7 @@ func Register(r *macaron.Macaron) {
|
||||
// invites
|
||||
r.Get("/invites", wrap(GetPendingOrgInvites))
|
||||
r.Post("/invites", bind(dtos.AddInviteForm{}), wrap(AddOrgInvite))
|
||||
r.Patch("/invites/:id/revoke", wrap(RevokeInvite))
|
||||
r.Patch("/invites/:code/revoke", wrap(RevokeInvite))
|
||||
}, regOrgAdmin)
|
||||
|
||||
// create new org
|
||||
|
Reference in New Issue
Block a user