Skip to content

Commit 351ce84

Browse files
committed
adding dev-v0.10.3 tag to this commit to ensure building
1 parent 6af945a commit 351ce84

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
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;]
43-
VERSION = &#34;0.10.2&#34;
43+
VERSION = &#34;0.10.3&#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/api/utils.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.emailpassword.api.utils
101101
&#34;All elements of formFields must contain an &#39;id&#39; and &#39;value&#39; field&#34;
102102
)
103103
value = current_form_field[&#34;value&#34;]
104-
if current_form_field[&#34;id&#34;] == FORM_FIELD_EMAIL_ID:
104+
if current_form_field[&#34;id&#34;] == FORM_FIELD_EMAIL_ID and isinstance(value, str):
105105
value = value.strip()
106106
form_fields.append(FormField(current_form_field[&#34;id&#34;], value))
107107

@@ -147,7 +147,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
147147
&#34;All elements of formFields must contain an &#39;id&#39; and &#39;value&#39; field&#34;
148148
)
149149
value = current_form_field[&#34;value&#34;]
150-
if current_form_field[&#34;id&#34;] == FORM_FIELD_EMAIL_ID:
150+
if current_form_field[&#34;id&#34;] == FORM_FIELD_EMAIL_ID and isinstance(value, str):
151151
value = value.strip()
152152
form_fields.append(FormField(current_form_field[&#34;id&#34;], value))
153153

html/supertokens_python/recipe/emailpassword/utils.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ <h1 class="title">Module <code>supertokens_python.recipe.emailpassword.utils</co
9898
return None
9999

100100

101-
async def default_email_validator(value: str) -&gt; Union[str, None]:
101+
async def default_email_validator(value: Any) -&gt; Union[str, None]:
102102
# We check if the email syntax is correct
103103
# As per https://github.com/supertokens/supertokens-auth-react/issues/5#issuecomment-709512438
104104
# Regex from https://stackoverflow.com/a/46181/3867175
105-
if (
105+
if (not isinstance(value, str)) or (
106106
fullmatch(
107107
r&#39;^(([^&lt;&gt;()\[\]\\.,;:\s@&#34;]+(\.[^&lt;&gt;()\[\]\\.,;:\s@&#34;]+)*)|(&#34;.+&#34;))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,&#39;
108108
r&#34;3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$&#34;,
@@ -491,19 +491,19 @@ <h1 class="title">Module <code>supertokens_python.recipe.emailpassword.utils</co
491491
<h2 class="section-title" id="header-functions">Functions</h2>
492492
<dl>
493493
<dt id="supertokens_python.recipe.emailpassword.utils.default_email_validator"><code class="name flex">
494-
<span>async def <span class="ident">default_email_validator</span></span>(<span>value: str) ‑> Optional[str]</span>
494+
<span>async def <span class="ident">default_email_validator</span></span>(<span>value: Any) ‑> Optional[str]</span>
495495
</code></dt>
496496
<dd>
497497
<div class="desc"></div>
498498
<details class="source">
499499
<summary>
500500
<span>Expand source code</span>
501501
</summary>
502-
<pre><code class="python">async def default_email_validator(value: str) -&gt; Union[str, None]:
502+
<pre><code class="python">async def default_email_validator(value: Any) -&gt; Union[str, None]:
503503
# We check if the email syntax is correct
504504
# As per https://github.com/supertokens/supertokens-auth-react/issues/5#issuecomment-709512438
505505
# Regex from https://stackoverflow.com/a/46181/3867175
506-
if (
506+
if (not isinstance(value, str)) or (
507507
fullmatch(
508508
r&#39;^(([^&lt;&gt;()\[\]\\.,;:\s@&#34;]+(\.[^&lt;&gt;()\[\]\\.,;:\s@&#34;]+)*)|(&#34;.+&#34;))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,&#39;
509509
r&#34;3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$&#34;,

0 commit comments

Comments
 (0)