TatoniMatteo commented on code in PR #1506:
URL: https://github.com/apache/syncope/pull/1506#discussion_r3861799168
##########
client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/pages/Login.html:
##########
@@ -55,18 +55,30 @@
</div>
<div class="container">
<div class="login-card card card-container">
- <img class="login-logo" src="ui-commons/img/logo-green.png" />
+ <img class="login-logo" src="ui-commons/img/logo-green.png"/>
<span wicket:id="feedback" role="alert"/>
<form class="form-signin" wicket:id="login">
<fieldset class="form-group">
- <input type="text" wicket:id="username" class="form-control"
- wicket:message="placeholder:username" required="required"
autofocus="autofocus" />
-
- <input type="password" wicket:id="password" class="form-control"
- wicket:message="placeholder:password" required="required" />
-
+ <input type="text" wicket:id="username" class="form-control"
+ wicket:message="placeholder:username" required="required"
autofocus="autofocus"/>
+ <div class="d-flex">
+ <input type="password" wicket:id="password" class="form-control
input-password"
+ wicket:message="placeholder:password"
required="required"/>
+ <button type="button" class="btn btn-warning btn-flat
input-group-text btn-eye" onclick="
+ var input = $(this).prev('input');
+ var type = input.attr('type');
+ var children = $(this).children();
+ if (type !== 'text') {
+ $(input).attr('type', 'text');
+ $(children).addClass('fa-eye-slash').removeClass('fa-eye');
+ } else {
+ $(input).attr('type', 'password');
+ $(children).removeClass('fa-eye-slash').addClass('fa-eye');
+ }
+ return false;"><i class="fa fa-eye"></i></button>
+ </div>
Review Comment:
The same applies here
##########
client/idrepo/enduser/src/main/resources/META-INF/resources/css/syncopeEnduser.css:
##########
@@ -1322,3 +1322,12 @@ h4.card-title {
background-color: #BD2130 !important;
}
+.btn.btn-eye {
+ width: 44px;
+ height: 38px;
+ border-radius: 0 8px 8px 0;
+}
+
+.input-password {
+ border-radius: 8px 0 0 8px !important;
+}
Review Comment:
The same applies here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]