mirror of
https://github.com/flarum/core.git
synced 2025-07-26 03:01:22 +02:00
Remember checkbox (#1075)
* Add session option to Rememberer class * Update session login function to allow send additional data * Add Remember me checkbox * Cleanup login modal
This commit is contained in:
committed by
Toby Zerner
parent
7af4b8d45f
commit
06c32b668d
6
js/admin/dist/app.js
vendored
6
js/admin/dist/app.js
vendored
@@ -22552,13 +22552,13 @@ System.register('flarum/Session', [], function (_export, _context) {
|
||||
|
||||
babelHelpers.createClass(Session, [{
|
||||
key: 'login',
|
||||
value: function login(identification, password) {
|
||||
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
||||
value: function login(data) {
|
||||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
|
||||
return app.request(babelHelpers.extends({
|
||||
method: 'POST',
|
||||
url: app.forum.attribute('baseUrl') + '/login',
|
||||
data: { identification: identification, password: password }
|
||||
data: data
|
||||
}, options));
|
||||
}
|
||||
}, {
|
||||
|
Reference in New Issue
Block a user