From 5398b6f667738dd81f0541081b0b9a8d8a908388 Mon Sep 17 00:00:00 2001 From: macarthuror Date: Tue, 23 Jul 2019 04:16:41 -0500 Subject: [PATCH] custom pages example and an email adapter is added (#5838) * custom pages example and an email adapter is added * npm link of email adapter * spelling and grammar changes Co-Authored-By: Tom Fox * spelling changes Co-Authored-By: Tom Fox --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 0fbf3e44..9f36c553 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ The full documentation for Parse Server is available in the [wiki](https://githu - [Basic Options](#basic-options) - [Client Key Options](#client-key-options) - [Email Verification & Password Reset](#email-verification-and-password-reset) + - [Custom Pages](#custom-pages) - [Using Environment Variables](#using-environment-variables-to-configure-parse-server) - [Available Adapters](#available-adapters) - [Configuring File Adapters](#configuring-file-adapters) @@ -288,6 +289,7 @@ var server = ParseServer({ ``` You can also use other email adapters contributed by the community such as: +- [parse-smtp-template (Multi Language and Multi Template)](https://www.npmjs.com/package/parse-smtp-template) - [parse-server-postmark-adapter](https://www.npmjs.com/package/parse-server-postmark-adapter) - [parse-server-sendgrid-adapter](https://www.npmjs.com/package/parse-server-sendgrid-adapter) - [parse-server-mandrill-adapter](https://www.npmjs.com/package/parse-server-mandrill-adapter) @@ -298,6 +300,27 @@ You can also use other email adapters contributed by the community such as: - [simple-parse-smtp-adapter](https://www.npmjs.com/package/simple-parse-smtp-adapter) - [parse-server-generic-email-adapter](https://www.npmjs.com/package/parse-server-generic-email-adapter) +### Custom Pages + +It’s possible to change the default pages of the app and redirect the user to another path or domain. + +```js +var server = ParseServer({ + ...otherOptions, + + customPages { + passwordResetSuccess: "http://yourapp.com/passwordResetSuccess", + verifyEmailSuccess: "http://yourapp.com/verifyEmailSuccess", + parseFrameURL: "http://yourapp.com/parseFrameURL", + linkSendSuccess: "http://yourapp.com/linkSendSuccess", + linkSendFail: "http://yourapp.com/linkSendFail", + invalidLink: "http://yourapp.com/invalidLink", + invalidVerificationLink: "http://yourapp.com/invalidVerificationLink", + choosePassword: "http://yourapp.com/choosePassword" + } +}) +``` + ### Using environment variables to configure Parse Server You may configure the Parse Server using environment variables: