mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
Updated newsletter email verification endpoint
refs https://github.com/TryGhost/Ghost/pull/14491 - API endpoint used when completing verification of a newsletter email change has moved to `PUT /newsletters/verifications/` to follow our API patterns
This commit is contained in:
parent
0ca9f32d36
commit
86a69ece65
@ -28,7 +28,7 @@ export default class VerifyNewsletterEmail extends Component {
|
||||
@task
|
||||
*verifyEmailTask(token) {
|
||||
try {
|
||||
const url = this.ghostPaths.url.api('newsletters', 'verify-email');
|
||||
const url = this.ghostPaths.url.api('newsletters', 'verifications');
|
||||
|
||||
const response = yield this.ajax.put(url, {data: {token}});
|
||||
|
||||
|
@ -64,7 +64,7 @@ export default function mockNewsletters(server) {
|
||||
});
|
||||
|
||||
// verify email update
|
||||
server.put('/newsletters/verify-email/', function ({newsletters}, request) {
|
||||
server.put('/newsletters/verifications/', function ({newsletters}, request) {
|
||||
const requestBody = JSON.parse(request.requestBody);
|
||||
const tokenData = JSON.parse(atob(requestBody.token));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user