Skip to content

Commit 1fbd96f

Browse files
committed
adding dev-v0.11.9 tag to this commit to ensure building
1 parent fc2ea20 commit 1fbd96f

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

html/supertokens_python/constants.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h1 class="title">Module <code>supertokens_python.constants</code></h1>
4040
# License for the specific language governing permissions and limitations
4141
# under the License.
4242
SUPPORTED_CDI_VERSIONS = [&#34;2.9&#34;, &#34;2.10&#34;, &#34;2.11&#34;, &#34;2.12&#34;, &#34;2.13&#34;, &#34;2.14&#34;, &#34;2.15&#34;]
43-
VERSION = &#34;0.11.8&#34;
43+
VERSION = &#34;0.11.9&#34;
4444
TELEMETRY = &#34;/telemetry&#34;
4545
USER_COUNT = &#34;/users/count&#34;
4646
USER_DELETE = &#34;/user/remove&#34;

html/supertokens_python/recipe/emailpassword/emaildelivery/services/backward_compatibility/index.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@ <h1 class="title">Module <code>supertokens_python.recipe.emailpassword.emaildeli
4545
from typing import TYPE_CHECKING, Any, Awaitable, Callable, Dict, Union
4646

4747
from httpx import AsyncClient
48+
4849
from supertokens_python.ingredients.emaildelivery.types import EmailDeliveryInterface
4950
from supertokens_python.logger import log_debug_message
5051
from supertokens_python.recipe.emailpassword.interfaces import (
5152
EmailTemplateVars,
5253
RecipeInterface,
5354
)
54-
from supertokens_python.recipe.emailpassword.types import (
55-
User,
56-
)
55+
from supertokens_python.recipe.emailpassword.types import User
5756
from supertokens_python.supertokens import AppInfo
5857
from supertokens_python.utils import handle_httpx_client_exceptions
5958

@@ -124,6 +123,10 @@ <h1 class="title">Module <code>supertokens_python.recipe.emailpassword.emaildeli
124123
if user is None:
125124
raise Exception(&#34;Should never come here&#34;)
126125

126+
# we add this here cause the user may have overridden the sendEmail function
127+
# to change the input email and if we don&#39;t do this, the input email
128+
# will get reset by the getUserById call above.
129+
user.email = template_vars.user.email
127130
try:
128131
await self.reset_password_feature_send_email_func(
129132
user, template_vars.password_reset_link, user_context
@@ -225,6 +228,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>
225228
if user is None:
226229
raise Exception(&#34;Should never come here&#34;)
227230

231+
# we add this here cause the user may have overridden the sendEmail function
232+
# to change the input email and if we don&#39;t do this, the input email
233+
# will get reset by the getUserById call above.
234+
user.email = template_vars.user.email
228235
try:
229236
await self.reset_password_feature_send_email_func(
230237
user, template_vars.password_reset_link, user_context
@@ -265,6 +272,10 @@ <h3>Methods</h3>
265272
if user is None:
266273
raise Exception(&#34;Should never come here&#34;)
267274

275+
# we add this here cause the user may have overridden the sendEmail function
276+
# to change the input email and if we don&#39;t do this, the input email
277+
# will get reset by the getUserById call above.
278+
user.email = template_vars.user.email
268279
try:
269280
await self.reset_password_feature_send_email_func(
270281
user, template_vars.password_reset_link, user_context

0 commit comments

Comments
 (0)