diff --git a/ui/dialogs/profile.yaml b/ui/dialogs/profile.yaml index 136022f..9f9a0d6 100644 --- a/ui/dialogs/profile.yaml +++ b/ui/dialogs/profile.yaml @@ -11,6 +11,7 @@ formName: "profform" menuSelector: "nochange" title: "Edit Your Profile" action: "/profile" +options: "suppresslogin" fields: - type: "hidden" name: "tgt" diff --git a/userdata.go b/userdata.go index 38cc1cc..8f893db 100644 --- a/userdata.go +++ b/userdata.go @@ -220,6 +220,7 @@ func ProfilePhotoForm(ctxt ui.AmContext) (string, any, error) { ctxt.VarMap().Set("target", target) ctxt.VarMap().Set("photo_url", userPhotoURL(ci)) ctxt.VarMap().Set("amsterdam_pageTitle", "Upload User Photo") + ctxt.VarMap().Set("amsterdam_suppressLogin", true) return "framed_template", "photo_upload.jet", nil } return ui.ErrorPage(ctxt, err) @@ -273,6 +274,7 @@ func ProfilePhoto(ctxt ui.AmContext) (string, any, error) { ctxt.VarMap().Set("target", target) ctxt.VarMap().Set("photo_url", userPhotoURL(ci)) ctxt.VarMap().Set("amsterdam_pageTitle", "Upload User Photo") + ctxt.VarMap().Set("amsterdam_suppressLogin", true) return "framed_template", "photo_upload.jet", nil } if ctxt.FormFieldIsSet("remove") {