mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-20 19:20:04 +00:00
Bug 4228: Implemented login hint for more pages
This commit is contained in:
1 parent
4a5e2a48fb
commit
62f4b32273
5 files changed
+34
No files matched your search
+1
@@ -11,4 +11,5 @@ public interface GenericAuthenticationLinkFactory {
|
||||
|
||||
String createPasswordResetLink();
|
||||
|
||||
String createMoreInfoAboutLoginLink();
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.sap.sse.security.ui.authentication.generic.sapheader;
|
||||
|
||||
import com.google.gwt.user.client.Window;
|
||||
import com.sap.sse.security.ui.authentication.AuthenticationManager;
|
||||
import com.sap.sse.security.ui.authentication.generic.GenericAuthenticationLinkFactory;
|
||||
import com.sap.sse.security.ui.authentication.login.LoginHintPopup;
|
||||
|
||||
public class FixedLoginHintPopup extends LoginHintPopup {
|
||||
|
||||
public FixedLoginHintPopup(AuthenticationManager authenticationManager, GenericAuthenticationLinkFactory linkFactory) {
|
||||
super(authenticationManager, () -> Window.open(linkFactory.createMoreInfoAboutLoginLink(), "_blank", ""));
|
||||
this.addStyleName(SAPHeaderWithAuthenticationResources.INSTANCE.css().usermanagement_view());
|
||||
this.addStyleName(SAPHeaderWithAuthenticationResources.INSTANCE.css().fixed());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user