-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
placeholder for login_hint and error text if login_hint does not star…
…t with mailto:
- Loading branch information
1 parent
e7d3708
commit 61a0a51
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 ? '*' : ''} | ||
|
@@ -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" | ||
|