users: attach Jellyfin ID to contactMethodUser

pull/297/head
Harvey Tindall 4 months ago
parent 54e4a51a7f
commit 280c6e4f16
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -37,6 +37,11 @@ func (app *appContext) NewUserFromAdmin(gc *gin.Context) {
gc.BindJSON(&req)
profile := app.storage.GetDefaultProfile()
if req.Profile != "" && req.Profile != "none" {
if p, ok := app.storage.GetProfileKey(req.Profile); ok {
profile = p
}
}
nu := app.NewUserPostVerification(NewUserParams{
Req: req,
SourceType: ActivityAdmin,
@ -225,6 +230,7 @@ func (app *appContext) NewUserFromInvite(gc *gin.Context) {
nonEmailContactMethodEnabled = true
}
app.contactMethods[i].DeleteVerifiedToken(c.PIN)
c.User.SetJellyfin(nu.User.ID)
c.User.Store(&(app.storage))
}
}

Loading…
Cancel
Save