@ -170,6 +170,7 @@ func (app *appContext) ResetPassword(gc *gin.Context) {
data [ "helpMessage" ] = app . config . Section ( "ui" ) . Key ( "help_message" ) . String ( )
data [ "helpMessage" ] = app . config . Section ( "ui" ) . Key ( "help_message" ) . String ( )
data [ "successMessage" ] = app . config . Section ( "ui" ) . Key ( "success_message" ) . String ( )
data [ "successMessage" ] = app . config . Section ( "ui" ) . Key ( "success_message" ) . String ( )
data [ "jfLink" ] = app . config . Section ( "ui" ) . Key ( "redirect_url" ) . String ( )
data [ "jfLink" ] = app . config . Section ( "ui" ) . Key ( "redirect_url" ) . String ( )
data [ "redirectToJellyfin" ] = app . config . Section ( "ui" ) . Key ( "auto_redirect" ) . MustBool ( false )
data [ "validate" ] = app . config . Section ( "password_validation" ) . Key ( "enabled" ) . MustBool ( false )
data [ "validate" ] = app . config . Section ( "password_validation" ) . Key ( "enabled" ) . MustBool ( false )
data [ "requirements" ] = app . validator . getCriteria ( )
data [ "requirements" ] = app . validator . getCriteria ( )
data [ "strings" ] = app . storage . lang . PasswordReset [ lang ] . Strings
data [ "strings" ] = app . storage . lang . PasswordReset [ lang ] . Strings
@ -437,13 +438,18 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
fail ( )
fail ( )
return
return
}
}
jfLink := app . config . Section ( "ui" ) . Key ( "redirect_url" ) . String ( )
if app . config . Section ( "ui" ) . Key ( "auto_redirect" ) . MustBool ( false ) {
gc . Redirect ( 301 , jfLink )
} else {
gcHTML ( gc , http . StatusOK , "create-success.html" , gin . H {
gcHTML ( gc , http . StatusOK , "create-success.html" , gin . H {
"cssClass" : app . cssClass ,
"cssClass" : app . cssClass ,
"strings" : app . storage . lang . Form [ lang ] . Strings ,
"strings" : app . storage . lang . Form [ lang ] . Strings ,
"successMessage" : app . config . Section ( "ui" ) . Key ( "success_message" ) . String ( ) ,
"successMessage" : app . config . Section ( "ui" ) . Key ( "success_message" ) . String ( ) ,
"contactMessage" : app . config . Section ( "ui" ) . Key ( "contact_message" ) . String ( ) ,
"contactMessage" : app . config . Section ( "ui" ) . Key ( "contact_message" ) . String ( ) ,
"jfLink" : app . config . Section ( "ui" ) . Key ( "redirect_url" ) . String ( ) ,
"jfLink" : jfLink ,
} )
} )
}
inv , ok := app . storage . invites [ code ]
inv , ok := app . storage . invites [ code ]
if ok {
if ok {
l := len ( inv . Keys )
l := len ( inv . Keys )
@ -468,6 +474,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
"helpMessage" : app . config . Section ( "ui" ) . Key ( "help_message" ) . String ( ) ,
"helpMessage" : app . config . Section ( "ui" ) . Key ( "help_message" ) . String ( ) ,
"successMessage" : app . config . Section ( "ui" ) . Key ( "success_message" ) . String ( ) ,
"successMessage" : app . config . Section ( "ui" ) . Key ( "success_message" ) . String ( ) ,
"jfLink" : app . config . Section ( "ui" ) . Key ( "redirect_url" ) . String ( ) ,
"jfLink" : app . config . Section ( "ui" ) . Key ( "redirect_url" ) . String ( ) ,
"redirectToJellyfin" : app . config . Section ( "ui" ) . Key ( "auto_redirect" ) . MustBool ( false ) ,
"validate" : app . config . Section ( "password_validation" ) . Key ( "enabled" ) . MustBool ( false ) ,
"validate" : app . config . Section ( "password_validation" ) . Key ( "enabled" ) . MustBool ( false ) ,
"requirements" : app . validator . getCriteria ( ) ,
"requirements" : app . validator . getCriteria ( ) ,
"email" : email ,
"email" : email ,