Fix csrf usage
This commit is contained in:
parent
f7d5ccee3c
commit
f68e7359c6
|
@ -515,11 +515,12 @@ export default class TestConfiguration {
|
||||||
}
|
}
|
||||||
|
|
||||||
async newTenant(appName = newid()): Promise<App> {
|
async newTenant(appName = newid()): Promise<App> {
|
||||||
|
this.csrfToken = generator.hash()
|
||||||
|
|
||||||
this.tenantId = structures.tenant.id()
|
this.tenantId = structures.tenant.id()
|
||||||
this.user = await this.globalUser()
|
this.user = await this.globalUser()
|
||||||
this.userMetadataId = generateUserMetadataID(this.user._id)
|
this.userMetadataId = generateUserMetadataID(this.user._id)
|
||||||
|
|
||||||
this.csrfToken = generator.hash()
|
|
||||||
return this.createApp(appName)
|
return this.createApp(appName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue