Commit 5705d96e0010b9e588f1d01920ea302556fb0a03

Authored by Nikita Kulshreshtha
1 parent e3468164

for now the modules are hard coded as earlier and bypasses login.

This will be back once the remote mongoDB conenction issue is fixed.
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -86,37 +86,38 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -86,37 +86,38 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
86 $rootScope.userModules ; 86 $rootScope.userModules ;
87 87
88 $rootScope.AuthenticateUser = function (userInfo) { 88 $rootScope.AuthenticateUser = function (userInfo) {
89 - if (userInfo.username == "" || userInfo.username == null || userInfo.password == "" || userInfo.password == null) { 89 + $rootScope.isVisibleLogin = false;
  90 + //if (userInfo.username == "" || userInfo.username == null || userInfo.password == "" || userInfo.password == null) {
90 91
91 - alert("Please enter correct information"); 92 + // alert("Please enter correct information");
92 93
93 - }  
94 - else {  
95 -  
96 - AuthenticationService.authenticateUser(userInfo)  
97 - .then(  
98 -  
99 - function (result) {  
100 - if (result == LoginConstants.USER_NOT_FOUND) {  
101 -  
102 - alert(result);  
103 - }  
104 - else if (result == LoginConstants.ERROR_IN_FECTHING_DETAILS) {  
105 - alert(result);  
106 - }  
107 - else {  
108 - if (result.loginId != undefined || result.loginId != "" || result.loginId != null) 94 + //}
  95 + //else {
109 96
110 - $rootScope.userData = result;  
111 - $rootScope.userModules = result.modules;  
112 - $rootScope.isVisibleLogin = false;  
113 - }  
114 - },  
115 - function (error) {  
116 - console.log(' Error in authentication = ' + error.statusText);  
117 - alert(LoginConstants.ERROR_IN_FECTHING_DETAILS);  
118 - });  
119 - } 97 + // AuthenticationService.authenticateUser(userInfo)
  98 + // .then(
  99 +
  100 + // function (result) {
  101 + // if (result == LoginConstants.USER_NOT_FOUND) {
  102 +
  103 + // alert(result);
  104 + // }
  105 + // else if (result == LoginConstants.ERROR_IN_FECTHING_DETAILS) {
  106 + // alert(result);
  107 + // }
  108 + // else {
  109 + // if (result.loginId != undefined || result.loginId != "" || result.loginId != null)
  110 +
  111 + // $rootScope.userData = result;
  112 + // $rootScope.userModules = result.modules;
  113 + // $rootScope.isVisibleLogin = false;
  114 + // }
  115 + // },
  116 + // function (error) {
  117 + // console.log(' Error in authentication = ' + error.statusText);
  118 + // alert(LoginConstants.ERROR_IN_FECTHING_DETAILS);
  119 + // });
  120 + //}
120 121
121 } 122 }
122 123
400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html
@@ -25,8 +25,25 @@ @@ -25,8 +25,25 @@
25 <div class="sidebar pull-left mCustomScrollbar _mCS_1 mCS-autoHide "> 25 <div class="sidebar pull-left mCustomScrollbar _mCS_1 mCS-autoHide ">
26 <!--{{name}}--> 26 <!--{{name}}-->
27 <ul class="nav nav-sidebar" ng-init="hideScrollbar()"> 27 <ul class="nav nav-sidebar" ng-init="hideScrollbar()">
28 - <li ng-repeat="module in userModules"><a id="{{module.slug}}" href="{{module.slug}}" ng-click="IsVisible()">{{module.name}}</a></li>  
29 - </ul> 28 + <!--<li ng-repeat="module in userModules"><a id="{{module.slug}}" href="{{module.slug}}" ng-click="IsVisible()">{{module.name}}</a></li>-->
  29 + <li><a href="da-view-list" ng-click="IsVisible()">Dissectible Anatomy</a></li>
  30 + <li><a href="3dAnatomy" ng-click="IsVisible()">3D Anatomy</a></li>
  31 + <li><a href="clinical-illustrations" ng-click="IsVisible()">Clinical Illustrations</a></li>
  32 + <li><a href="clinical-animations" ng-click="IsVisible()">Clinical Animations</a></li>
  33 + <li><a href="Link/encyclopedia" ng-click="IsVisible()">Encyclopedia</a></li>
  34 + <li><a href="curriculum-builder" ng-click="IsVisible()">Curriculum Builder</a></li>
  35 + <li><a href="anatomy-test" ng-click="IsVisible()">Anatomy Tests</a></li>
  36 + <li><a href="Link/IP-10" ng-click="IsVisible()">IP 10</a></li>
  37 + <li><a href="lab-exercises" ng-click="IsVisible()">Lab Exercises</a></li>
  38 + <li><a href="Link/indepth-reports" ng-click="IsVisible()">In-Depth Reports</a></li>
  39 + <li><a href="Link/complementary-and-alternate-medicine" ng-click="IsVisible()">Complementary and Alternative Medicine</a></li>
  40 + <li><a href="ADAM-Images" ng-click="IsVisible()">A.D.A.M Images</a></li>
  41 + <li><a href="Link/bodyguide" ng-click="IsVisible()">Body Guide</a></li>
  42 + <li><a href="Link/symptom-navigator" ng-click="IsVisible()">Symptom Navigator</a></li>
  43 + <li><a href="Link/wellness-tools" ng-click="IsVisible()">The Wellness Tools</a></li>
  44 + <li><a href="ADAM-on-demand" ng-click="IsVisible()">A.D.A.M OnDemand</a></li>
  45 +
  46 + </ul>
30 </div> 47 </div>
31 48
32 </div> 49 </div>