mirror of
https://github.com/flarum/framework.git
synced 2025-05-21 22:36:01 +08: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
@ -30,11 +30,11 @@ export default class Session {
|
||||
* @return {Promise}
|
||||
* @public
|
||||
*/
|
||||
login(identification, password, options = {}) {
|
||||
login(data, options = {}) {
|
||||
return app.request(Object.assign({
|
||||
method: 'POST',
|
||||
url: app.forum.attribute('baseUrl') + '/login',
|
||||
data: {identification, password}
|
||||
data
|
||||
}, options));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user