Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function LoginUser() {
- var RequestPath = 'http://'+apiurl+'/api/Values/LoginUser'
- var UserName = $('#TxtUName').val();
- var Password = $('#TxtPass').val();
- RequestPath += '/' + UserName + '/' + Password;
- $.get(RequestPath, function (data) {
- localStorage.setItem('UserId', data["UserId"]);
- localStorage.setItem('CompanyId', data["CompanyId"]);
- var loc = '/Users/Index.html';
- if (data["ModName"] != null && undefined != data["ModName"] && data["ModName"] != '') {
- loc = '/' + data["ModName"] + '/Index.html';
- }
- window.location = loc;
- });
- }
- $(function () {
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement