1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 02:10:24 +00:00

Optimize avatar (#6991)

* update

* update2

* other

* other

* update

* update

* Update test_user_avatar.py

* Update migrate_avatars_fs2db.py

---------

Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
This commit is contained in:
awu0403
2024-11-11 10:29:52 +08:00
committed by GitHub
parent 2d005e98cd
commit f9b3e692ec
49 changed files with 121 additions and 227 deletions

View File

@@ -874,13 +874,9 @@ class SystemAdminAPI {
return this.req.delete(url);
}
sysAdminGetUser(email, avatarSize) {
sysAdminGetUser(email) {
const url = this.server + '/api/v2.1/admin/users/' + encodeURIComponent(email) + '/';
let params = {};
if (avatarSize) {
params.avatar_size = avatarSize;
}
return this.req.get(url, { params: params });
return this.req.get(url);
}
sysAdminResetUserPassword(email) {