Demo milestone

This commit is contained in:
2013-10-30 17:28:33 +01:00
parent 1af153e45f
commit 1f84a89083
6 changed files with 13 additions and 20 deletions
+6 -1
View File
@@ -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}';