Skip to content

Commit d6778e5

Browse files
authored
Merge pull request #460 from devforth/next
Next
2 parents d2f2638 + 8ded8ec commit d6778e5

File tree

78 files changed

+352
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+352
-43
lines changed

adminforth/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ getClientIp(headers: object) {
154154
decoded = jwt.verify(jwtToken, secret);
155155
} catch (err) {
156156
if (err.name === 'TokenExpiredError') {
157-
afLogger.error(`Token expired: ${err.message}`);
157+
afLogger.info(`Token expired: ${err.message}`);
158158
} else if (err.name === 'JsonWebTokenError') {
159-
afLogger.error(`Token error: ${err.message}`);
159+
afLogger.info(`Token error: ${err.message}, JWT secret changed?`);
160160
} else {
161161
afLogger.error(`Failed to verify JWT token: ${err}`);
162162
}

adminforth/dataConnectors/baseConnector.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export default class AdminForthBaseConnector implements IAdminForthDataSourceCon
1717

1818
client: any;
1919

20+
/**
21+
* @deprecated Since 1.2.9. Will be removed in 2.0.0. Use .client instead.
22+
*/
2023
get db() {
2124
afLogger.warn('.db is deprecated, use .client instead');
2225
return this.client;

adminforth/documentation/blog/2024-08-05-chatgpt/index.md

Lines changed: 1 addition & 1 deletion

adminforth/documentation/docs/tutorial/03-Customization/04-hooks.md

Lines changed: 1 addition & 1 deletion

adminforth/documentation/docs/tutorial/03-Customization/15-afcl.md

Lines changed: 24 additions & 0 deletions
Lines changed: 60 additions & 0 deletions

adminforth/documentation/docs/tutorial/07-Plugins/01-AuditLog.md renamed to adminforth/documentation/docs/tutorial/08-Plugins/01-AuditLog.md

adminforth/documentation/docs/tutorial/07-Plugins/02-TwoFactorsAuth.md renamed to adminforth/documentation/docs/tutorial/08-Plugins/02-TwoFactorsAuth.md

adminforth/documentation/docs/tutorial/07-Plugins/03-ForeignInlineList.md renamed to adminforth/documentation/docs/tutorial/08-Plugins/03-ForeignInlineList.md

adminforth/documentation/docs/tutorial/07-Plugins/04-RichEditor.md renamed to adminforth/documentation/docs/tutorial/08-Plugins/04-RichEditor.md

0 commit comments

Comments
 (0)