mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: replace first and last name with single field (#4915)
This commit is contained in:
parent
413ab2c538
commit
7fca0d8da5
98 changed files with 567 additions and 1147 deletions
15
server/test/fixtures/auth.stub.ts
vendored
15
server/test/fixtures/auth.stub.ts
vendored
|
|
@ -1,8 +1,7 @@
|
|||
import { AuthUserDto } from '@app/domain';
|
||||
|
||||
export const adminSignupStub = {
|
||||
firstName: 'Immich',
|
||||
lastName: 'Admin',
|
||||
name: 'Immich Admin',
|
||||
email: 'admin@immich.app',
|
||||
password: 'Password123',
|
||||
};
|
||||
|
|
@ -103,9 +102,8 @@ export const loginResponseStub = {
|
|||
admin: {
|
||||
response: {
|
||||
accessToken: expect.any(String),
|
||||
firstName: 'Immich',
|
||||
name: 'Immich Admin',
|
||||
isAdmin: true,
|
||||
lastName: 'Admin',
|
||||
profileImagePath: '',
|
||||
shouldChangePassword: true,
|
||||
userEmail: 'admin@immich.app',
|
||||
|
|
@ -117,8 +115,7 @@ export const loginResponseStub = {
|
|||
accessToken: 'cmFuZG9tLWJ5dGVz',
|
||||
userId: 'user-id',
|
||||
userEmail: 'immich@test.com',
|
||||
firstName: 'immich_first_name',
|
||||
lastName: 'immich_last_name',
|
||||
name: 'immich_name',
|
||||
profileImagePath: '',
|
||||
isAdmin: false,
|
||||
shouldChangePassword: false,
|
||||
|
|
@ -133,8 +130,7 @@ export const loginResponseStub = {
|
|||
accessToken: 'cmFuZG9tLWJ5dGVz',
|
||||
userId: 'user-id',
|
||||
userEmail: 'immich@test.com',
|
||||
firstName: 'immich_first_name',
|
||||
lastName: 'immich_last_name',
|
||||
name: 'immich_name',
|
||||
profileImagePath: '',
|
||||
isAdmin: false,
|
||||
shouldChangePassword: false,
|
||||
|
|
@ -149,8 +145,7 @@ export const loginResponseStub = {
|
|||
accessToken: 'cmFuZG9tLWJ5dGVz',
|
||||
userId: 'user-id',
|
||||
userEmail: 'immich@test.com',
|
||||
firstName: 'immich_first_name',
|
||||
lastName: 'immich_last_name',
|
||||
name: 'immich_name',
|
||||
profileImagePath: '',
|
||||
isAdmin: false,
|
||||
shouldChangePassword: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue