Skip to content

Commit

Permalink
placeholder for login_hint and error text if login_hint does not star…
Browse files Browse the repository at this point in the history
…t with mailto:
  • Loading branch information
rohanharikr committed Sep 17, 2024
1 parent e7d3708 commit 61a0a51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,11 @@
states.protocol_params.includes('response_mode') &&
states.protocol_param_values.response_mode === 'query' &&
states.protocol_params.includes('response_type') &&
states.protocol_param_values.response_type === 'id_token')}
states.protocol_param_values.response_type === 'id_token') ||
//login_hint should start with mailto:
(param === 'login_hint' &&
states.protocol_params.includes('login_hint') &&
!states.protocol_param_values.login_hint.startsWith('mailto:'))}
>
{param}
{required ? '*' : ''}
Expand Down Expand Up @@ -1173,6 +1177,7 @@
>
<input
type="text"
placeholder={param === 'login_hint' ? 'mailto:[email protected]' : ''}
name={param}
class="h-6 px-2 w-full form-input"
autocomplete="off"
Expand Down

0 comments on commit 61a0a51

Please sign in to comment.