1
0
mirror of https://github.com/flarum/core.git synced 2025-08-02 22:47:33 +02:00

Initial refactor of client actions, data preloading, SEO

An initial stab at flarum/core#126. Still WIP. Preliminary
implementation of flarum/core#128 and flarum/core#13.
This commit is contained in:
Toby Zerner
2015-07-07 15:29:21 +09:30
parent fcc5aa17ea
commit 99876e9e36
27 changed files with 413 additions and 241 deletions

View File

@@ -13,7 +13,7 @@ export default class Session extends mixin(class {}, evented) {
var self = this;
m.request({
method: 'POST',
url: app.config['base_url']+'/login',
url: app.forum.attribute('baseUrl')+'/login',
data: {identification, password},
background: true
}).then(function(response) {
@@ -32,7 +32,7 @@ export default class Session extends mixin(class {}, evented) {
}
logout() {
window.location = app.config['base_url']+'/logout';
window.location = app.forum.attribute('baseUrl')+'/logout?token='+this.token();
}
authorize(xhr) {