mirror of
https://github.com/flarum/framework.git
synced 2025-06-07 09:04:33 +08: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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user