generated from bisco/codex-bootstrap
fix: send staff session credentials for check-in
This commit is contained in:
@@ -170,7 +170,7 @@ type BarcodeDetectorConstructor = new (options?: { formats?: string[] }) => Barc
|
||||
<p class="error-message" aria-live="assertive">This reservation is already checked in.</p>
|
||||
}
|
||||
@if (state() === 'unauthorized') {
|
||||
<p class="error-message" aria-live="assertive">You are not authorized. Staff login is required.</p>
|
||||
<p class="error-message" aria-live="assertive">You are not authorized. Log into <code>/admin</code> with a staff account, then retry this check-in.</p>
|
||||
}
|
||||
@if (state() === 'error') {
|
||||
<p class="error-message" aria-live="assertive">Something went wrong. Please try again.</p>
|
||||
|
||||
@@ -115,10 +115,18 @@ export class ShowsApiService {
|
||||
}
|
||||
|
||||
previewCheckIn(token: string): Observable<CheckInPreviewResponse> {
|
||||
return this.http.post<CheckInPreviewResponse>(`${this.apiBaseUrl}/check-ins/preview/`, { token });
|
||||
return this.http.post<CheckInPreviewResponse>(
|
||||
`${this.apiBaseUrl}/check-ins/preview/`,
|
||||
{ token },
|
||||
{ withCredentials: true },
|
||||
);
|
||||
}
|
||||
|
||||
confirmCheckIn(token: string): Observable<CheckInConfirmResponse> {
|
||||
return this.http.post<CheckInConfirmResponse>(`${this.apiBaseUrl}/check-ins/confirm/`, { token });
|
||||
return this.http.post<CheckInConfirmResponse>(
|
||||
`${this.apiBaseUrl}/check-ins/confirm/`,
|
||||
{ token },
|
||||
{ withCredentials: true },
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user