mirror of
https://github.com/google/nomulus
synced 2026-07-26 01:53:16 +00:00
Update security checks around registry lock verification (#3137)
1. make it a POST instead of a GET 2. pass the user into DomainLockUtils so we can check permissions to make sure they have permissions on the registrar 3. update all the tests
This commit is contained in:
@@ -288,8 +288,9 @@ export class BackendService {
|
||||
verifyRegistryLockRequest(
|
||||
lockVerificationCode: string
|
||||
): Observable<RegistryLockVerificationResponse> {
|
||||
return this.http.get<RegistryLockVerificationResponse>(
|
||||
`/console-api/registry-lock-verify?lockVerificationCode=${lockVerificationCode}`
|
||||
return this.http.post<RegistryLockVerificationResponse>(
|
||||
`/console-api/registry-lock-verify?lockVerificationCode=${lockVerificationCode}`,
|
||||
{}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user