Demo milestone
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
= top_bar title: 'obtain_token.title' do
|
||||
span
|
||||
|
||||
|
||||
.well
|
||||
.alert.alert-warming.user-alert.hide
|
||||
form.form-horizontal
|
||||
@@ -15,3 +15,8 @@
|
||||
.control-group
|
||||
.controls
|
||||
button.btn.btn-primary data-t="obtain_token.obtain" onclick="Quser.authenticate_user(); return false"
|
||||
- unless current_user.blank? || ENV['QWAITER_MOBILE_EXPORT']=='yes'
|
||||
javascript:
|
||||
Qstorage.setItem('auth_token', '#{current_user.authentication_token}');
|
||||
Qstorage.setItem('user_id', '#{current_user.id}');
|
||||
window.location = '#{user_root_path}';
|
||||
|
||||
Reference in New Issue
Block a user