Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ee944d6 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

fix(sso): correct redirect after 'forgot password' flow

parent 4160bb1a
Loading
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -6,8 +6,8 @@ ARG NOTES_VERSION="4.11.0"
ARG CONTACTS_JOB_ID="1273569"
ARG CALENDAR_JOB_ID="1273554"
ARG EMAIL_RECOVERY_JOB_ID="1273659"
ARG EA_JOB_ID="1273772"
ARG LAUNCHER_JOB_ID="1273647"
ARG EA_JOB_ID="1289725"
ARG LAUNCHER_JOB_ID="1290271"
ARG GOOGLE_INTEGRATION_VERSION="3.2.0"
ARG DASHBOARD_JOB_ID="1273623"
ARG SNAPPY_VERSION="2.37.2"
@@ -236,6 +236,9 @@ RUN rm -rf ${TMP_PATCH_DIR}
# Remove user avatar generation for system addressbook card
RUN sed -i 's/$this->getAvatarImage($user)/null/' ${BASE_DIR}/apps/dav/lib/CardDAV/Converter.php

# redirect user to sso login on successful resetting password
RUN cd ${BASE_DIR}/dist && sed -i "s|window\.location\.href=(0,g\.Jv)(\"login\")|window.location.href = '/apps/oidc_login/oidc'|g" core-login.js

# show reset pwd page with a query param
# RUN cd ${BASE_DIR}/dist && sed -i 's/resetPassword:!1/resetPassword:!1||Z.showResetPassword==="1"/' core-login.js