Skip to content

Commit

Permalink
Added commnets - Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
devgurung committed Apr 11, 2019
1 parent 27875e7 commit 546d7c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,11 @@ protected void createCommonAttributes(Theme theme, Locale locale, Properties mes
*/
protected Response processTemplate(Theme theme, String templateName, Locale locale) {
QRCodeGenerator qrCodeGenerator= new QRCodeGenerator();
/*Get the image url where image is stored*/
String imgURL= Urls.themeRoot(uriInfo.getBaseUri()).getPath() + "/login/" + theme.getName();
String result = "";
try {

/*Check if the client id is other than security-admin-console, if that is the case then show our customized qr code login page*/
if(!client.getClientId().equals("security-admin-console")) {
qrCodeGenerator.createQRImage(realm.getName() , client.getClientId() ,imgURL);
result= qrCodeGenerator.generateQRCodeHtml(imgURL);
Expand Down

0 comments on commit 546d7c9

Please sign in to comment.