Skip to content

Commit

Permalink
Issue #SB-0000 fix:sign in page should not show merge error messages (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshMantra authored and rjshrjndrn committed Aug 28, 2019
1 parent ce7e61f commit be900ea
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions ansible/artifacts/sunbird/login/resources/js/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ window.onload = function(){
var renderingType = 'queryParams';
if (!mergeaccountprocess) {
mergeaccountprocess = localStorage.getItem('mergeaccountprocess');
if (!version) {
version = localStorage.getItem('version');
}
hideElement("mergeAccountMessage");
renderingType = 'local-storage';
var error_summary = document.getElementById('error-summary');
if (error_summary) {
var errorMessage = error_summary.innerHTML.valueOf();
error_summary.innerHTML = errorMessage + 'to merge';
if (mergeaccountprocess === '1') {
if (!version) {
version = localStorage.getItem('version');
}
hideElement("mergeAccountMessage");
renderingType = 'local-storage';
var error_summary = document.getElementById('error-summary');
if (error_summary) {
var errorMessage = error_summary.innerHTML.valueOf();
error_summary.innerHTML = errorMessage + 'to merge';
}
}
} else {
localStorage.clear()
Expand Down

0 comments on commit be900ea

Please sign in to comment.