mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
User profile view
This commit is contained in:
@@ -33,6 +33,7 @@ router.get('/me', async (request, response) => {
|
||||
avatar: getUserAvatar(user.handle),
|
||||
admin: user.admin,
|
||||
password: !!user.password,
|
||||
created: user.created,
|
||||
};
|
||||
|
||||
return response.json(viewModel);
|
||||
|
@@ -49,6 +49,7 @@ const STORAGE_KEYS = {
|
||||
* @property {string} avatar - The user's avatar image
|
||||
* @property {boolean} admin - Whether the user is an admin (can manage other users)
|
||||
* @property {boolean} password - Whether the user is password protected
|
||||
* @property {number} [created] - The timestamp when the user was created
|
||||
*/
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user