update security handling for user namespace
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
doctype html
|
||||
html lang="en"
|
||||
head
|
||||
meta charset="utf-8"
|
||||
meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"
|
||||
meta name="viewport" content="width=device-width, initial-scale=1.0"
|
||||
title= content_for?(:title) ? yield(:title) : application_title
|
||||
= stylesheet_link_tag 'obtain_token/application'
|
||||
= csrf_meta_tags
|
||||
body class=action_name
|
||||
- if flash[:alert].present?
|
||||
.alert.alert-error
|
||||
a.close data-dismiss="alert" ×
|
||||
div= flash[:alert]
|
||||
- if flash[:notice].present?
|
||||
.alert.alert-success
|
||||
a.close data-dismiss="alert" ×
|
||||
div= flash[:notice]
|
||||
#obtain-token-container= yield
|
||||
@@ -19,7 +19,7 @@ html lang="en"
|
||||
javascript:
|
||||
var data_host = '#{Rails.env == 'development' ? 'http://localhost:3000' : 'http://data.qwaiter.com' }';
|
||||
//var data_host = 'http://localhost:3000';
|
||||
//var data_host = 'http://192.168.1.74:3000';
|
||||
data_host = 'http://192.168.1.148:3000';
|
||||
var $locale = '#{I18n.locale}';
|
||||
var $url_vars = null;
|
||||
// Dummy holder when Qmobile object is not supplied by the mobile phone
|
||||
@@ -36,7 +36,8 @@ html lang="en"
|
||||
},
|
||||
root_url: function(){return 'file:///Users/bterkuile/Documents/workspace/Qwaiter/assets'},
|
||||
root_url: function(){return ''},
|
||||
goHome: function(){ window.location = QMobile.root_url() + path_mapping['user_root'] + '.html'}
|
||||
goHome: function(){ redirect_to('user_root')},
|
||||
connection_problem: function(){alert('There is a problem connecting to the server')}
|
||||
});
|
||||
//QMobile.setAuthToken('i5brDZ1HS1okoEq3pMyh');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user