Skip to content

Commit 0eaf3c9

Browse files
committed
adding dev-v0.11.10 tag to this commit to ensure building
1 parent 59ba1fa commit 0eaf3c9

File tree

1 file changed

+25
-27
lines changed
  • html/supertokens_python/recipe/emailpassword/api

1 file changed

+25
-27
lines changed

html/supertokens_python/recipe/emailpassword/api/signup.html

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ <h1 class="title">Module <code>supertokens_python.recipe.emailpassword.api.signu
4343

4444
from typing import TYPE_CHECKING, Any
4545

46-
from ..exceptions import raise_form_field_exception
47-
from supertokens_python.recipe.emailpassword.interfaces import (
48-
SignUpOkResult,
49-
SignUpPostEmailAlreadyExistsError,
50-
)
46+
from supertokens_python.recipe.emailpassword.interfaces import SignUpPostOkResult
5147
from supertokens_python.types import GeneralErrorResponse
48+
49+
from ..exceptions import raise_form_field_exception
5250
from ..types import ErrorFormField
5351

5452
if TYPE_CHECKING:
@@ -79,20 +77,20 @@ <h1 class="title">Module <code>supertokens_python.recipe.emailpassword.api.signu
7977
form_fields, api_options, user_context
8078
)
8179

82-
if isinstance(response, SignUpOkResult):
80+
if isinstance(response, SignUpPostOkResult):
8381
return send_200_response(response.to_json(), api_options.response)
8482
if isinstance(response, GeneralErrorResponse):
8583
return send_200_response(response.to_json(), api_options.response)
86-
if isinstance(response, SignUpPostEmailAlreadyExistsError):
87-
return raise_form_field_exception(
88-
&#34;EMAIL_ALREADY_EXISTS_ERROR&#34;,
89-
[
90-
ErrorFormField(
91-
id=&#34;email&#34;,
92-
error=&#34;This email already exists. Please sign in instead.&#34;,
93-
)
94-
],
95-
)</code></pre>
84+
85+
return raise_form_field_exception(
86+
&#34;EMAIL_ALREADY_EXISTS_ERROR&#34;,
87+
[
88+
ErrorFormField(
89+
id=&#34;email&#34;,
90+
error=&#34;This email already exists. Please sign in instead.&#34;,
91+
)
92+
],
93+
)</code></pre>
9694
</details>
9795
</section>
9896
<section>
@@ -127,20 +125,20 @@ <h2 class="section-title" id="header-functions">Functions</h2>
127125
form_fields, api_options, user_context
128126
)
129127

130-
if isinstance(response, SignUpOkResult):
128+
if isinstance(response, SignUpPostOkResult):
131129
return send_200_response(response.to_json(), api_options.response)
132130
if isinstance(response, GeneralErrorResponse):
133131
return send_200_response(response.to_json(), api_options.response)
134-
if isinstance(response, SignUpPostEmailAlreadyExistsError):
135-
return raise_form_field_exception(
136-
&#34;EMAIL_ALREADY_EXISTS_ERROR&#34;,
137-
[
138-
ErrorFormField(
139-
id=&#34;email&#34;,
140-
error=&#34;This email already exists. Please sign in instead.&#34;,
141-
)
142-
],
143-
)</code></pre>
132+
133+
return raise_form_field_exception(
134+
&#34;EMAIL_ALREADY_EXISTS_ERROR&#34;,
135+
[
136+
ErrorFormField(
137+
id=&#34;email&#34;,
138+
error=&#34;This email already exists. Please sign in instead.&#34;,
139+
)
140+
],
141+
)</code></pre>
144142
</details>
145143
</dd>
146144
</dl>

0 commit comments

Comments
 (0)