Skip to content

Commit 8fccf23

Browse files
author
yaroslav8765
committed
fix: update loginPromptHTML function call to remove unnecessary parameters
1 parent 8282f67 commit 8fccf23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adminforth/modules/restApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
212212

213213
let loginPromptHTML;
214214
if(typeof this.adminforth.config.auth.loginPromptHTML === 'function') {
215-
loginPromptHTML = await this.adminforth.config.auth.loginPromptHTML({ adminUser, adminforth: this.adminforth, tr });
215+
loginPromptHTML = await this.adminforth.config.auth.loginPromptHTML();
216216
} else {
217217
loginPromptHTML = this.adminforth.config.auth.loginPromptHTML;
218218
}
@@ -300,7 +300,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
300300

301301
let loginPromptHTML;
302302
if(typeof this.adminforth.config.auth.loginPromptHTML === 'function') {
303-
loginPromptHTML = await this.adminforth.config.auth.loginPromptHTML({ adminUser, adminforth: this.adminforth, tr });
303+
loginPromptHTML = await this.adminforth.config.auth.loginPromptHTML();
304304
} else {
305305
loginPromptHTML = this.adminforth.config.auth.loginPromptHTML;
306306
}

0 commit comments

Comments
 (0)