@vizmo/parse-server 8.6.2-3 → 9.10.0-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/README.md +265 -91
  2. package/lib/AccountLockout.js +14 -42
  3. package/lib/Adapters/Auth/BaseCodeAuthAdapter.js +24 -4
  4. package/lib/Adapters/Auth/apple.js +6 -4
  5. package/lib/Adapters/Auth/facebook.js +12 -9
  6. package/lib/Adapters/Auth/google.js +35 -93
  7. package/lib/Adapters/Auth/index.js +19 -2
  8. package/lib/Adapters/Auth/keycloak.js +56 -36
  9. package/lib/Adapters/Auth/ldap.js +30 -4
  10. package/lib/Adapters/Auth/mfa.js +42 -50
  11. package/lib/Adapters/Auth/oauth2.js +4 -4
  12. package/lib/Adapters/Cache/RedisCacheAdapter.js +2 -2
  13. package/lib/Adapters/Files/FilesAdapter.js +12 -2
  14. package/lib/Adapters/Files/GridFSBucketAdapter.js +53 -4
  15. package/lib/Adapters/PubSub/RedisPubSub.js +1 -3
  16. package/lib/Adapters/Push/PushAdapter.js +2 -2
  17. package/lib/Adapters/Storage/Mongo/MongoCollection.js +54 -4
  18. package/lib/Adapters/Storage/Mongo/MongoStorageAdapter.js +169 -46
  19. package/lib/Adapters/Storage/Mongo/MongoTransform.js +30 -30
  20. package/lib/Adapters/Storage/Postgres/PostgresStorageAdapter.js +134 -36
  21. package/lib/Adapters/Storage/StorageAdapter.js +1 -1
  22. package/lib/Auth.js +82 -19
  23. package/lib/AuthDataLock.js +53 -0
  24. package/lib/Config.js +177 -22
  25. package/lib/Controllers/AdaptableController.js +6 -1
  26. package/lib/Controllers/DatabaseController.js +265 -40
  27. package/lib/Controllers/FilesController.js +26 -8
  28. package/lib/Controllers/LiveQueryController.js +2 -2
  29. package/lib/Controllers/ParseGraphQLController.js +3 -2
  30. package/lib/Controllers/PushController.js +2 -2
  31. package/lib/Controllers/SchemaController.js +3 -7
  32. package/lib/Controllers/UserController.js +12 -3
  33. package/lib/Deprecator/Deprecations.js +81 -7
  34. package/lib/Deprecator/Deprecator.js +15 -2
  35. package/lib/Error.js +5 -3
  36. package/lib/FileUrlValidator.js +69 -0
  37. package/lib/GraphQL/ParseGraphQLServer.js +156 -33
  38. package/lib/GraphQL/helpers/objectsMutations.js +3 -3
  39. package/lib/GraphQL/helpers/objectsQueries.js +4 -4
  40. package/lib/GraphQL/helpers/queryComplexity.js +138 -0
  41. package/lib/GraphQL/loaders/defaultGraphQLTypes.js +6 -5
  42. package/lib/GraphQL/loaders/functionsMutations.js +3 -4
  43. package/lib/GraphQL/loaders/parseClassMutations.js +4 -5
  44. package/lib/GraphQL/loaders/parseClassQueries.js +3 -4
  45. package/lib/GraphQL/loaders/schemaMutations.js +4 -5
  46. package/lib/GraphQL/loaders/schemaQueries.js +2 -3
  47. package/lib/GraphQL/loaders/usersMutations.js +5 -5
  48. package/lib/GraphQL/loaders/usersQueries.js +2 -2
  49. package/lib/GraphQL/parseGraphQLUtils.js +9 -1
  50. package/lib/GraphQL/transformers/mutation.js +7 -1
  51. package/lib/GraphQL/transformers/query.js +2 -2
  52. package/lib/InstallationDedup.js +178 -0
  53. package/lib/LiveQuery/ParseLiveQueryServer.js +330 -57
  54. package/lib/LiveQuery/QueryTools.js +83 -22
  55. package/lib/LiveQuery/Subscription.js +6 -2
  56. package/lib/Options/Definitions.js +261 -36
  57. package/lib/Options/docs.js +76 -20
  58. package/lib/Options/index.js +1 -1
  59. package/lib/Options/parsers.js +8 -1
  60. package/lib/ParseServer.js +42 -20
  61. package/lib/ParseServerRESTController.js +14 -6
  62. package/lib/Push/PushWorker.js +2 -4
  63. package/lib/Push/utils.js +3 -4
  64. package/lib/RestQuery.js +205 -21
  65. package/lib/RestWrite.js +219 -116
  66. package/lib/Routers/AggregateRouter.js +33 -6
  67. package/lib/Routers/AudiencesRouter.js +2 -2
  68. package/lib/Routers/ClassesRouter.js +10 -6
  69. package/lib/Routers/FilesRouter.js +572 -57
  70. package/lib/Routers/FunctionsRouter.js +204 -16
  71. package/lib/Routers/HooksRouter.js +8 -1
  72. package/lib/Routers/IAPValidationRouter.js +2 -2
  73. package/lib/Routers/InstallationsRouter.js +2 -2
  74. package/lib/Routers/PagesRouter.js +57 -28
  75. package/lib/Routers/SessionsRouter.js +59 -25
  76. package/lib/Routers/UsersRouter.js +161 -47
  77. package/lib/SchemaMigrations/DefinedSchemas.js +2 -3
  78. package/lib/SchemaMigrations/Migrations.js +1 -1
  79. package/lib/Security/Check.js +2 -2
  80. package/lib/Security/CheckGroups/CheckGroupServerConfig.js +65 -1
  81. package/lib/SharedRest.js +7 -2
  82. package/lib/StatusHandler.js +3 -2
  83. package/lib/Utils.js +143 -17
  84. package/lib/batch.js +68 -2
  85. package/lib/cloud-code/Parse.Cloud.js +60 -11
  86. package/lib/defaults.js +12 -4
  87. package/lib/middlewares.js +234 -71
  88. package/lib/password.js +8 -2
  89. package/lib/rest.js +16 -14
  90. package/lib/triggers.js +54 -14
  91. package/package.json +55 -57
  92. package/public/custom_json.html +17 -0
  93. package/public/custom_json.json +23 -0
  94. package/public/custom_page.html +15 -0
  95. package/public/de/email_verification_link_expired.html +24 -0
  96. package/public/de/email_verification_link_invalid.html +21 -0
  97. package/public/de/email_verification_send_fail.html +21 -0
  98. package/public/de/email_verification_send_success.html +19 -0
  99. package/public/de/email_verification_success.html +18 -0
  100. package/public/de/password_reset.html +65 -0
  101. package/public/de/password_reset_link_invalid.html +19 -0
  102. package/public/de/password_reset_success.html +18 -0
  103. package/public/de-AT/email_verification_link_expired.html +24 -0
  104. package/public/de-AT/email_verification_link_invalid.html +21 -0
  105. package/public/de-AT/email_verification_send_fail.html +21 -0
  106. package/public/de-AT/email_verification_send_success.html +19 -0
  107. package/public/de-AT/email_verification_success.html +18 -0
  108. package/public/de-AT/password_reset.html +65 -0
  109. package/public/de-AT/password_reset_link_invalid.html +19 -0
  110. package/public/de-AT/password_reset_success.html +18 -0
  111. package/public/email_verification_link_expired.html +24 -0
  112. package/public/email_verification_link_invalid.html +21 -0
  113. package/public/email_verification_send_fail.html +21 -0
  114. package/public/email_verification_send_success.html +19 -0
  115. package/public/email_verification_success.html +18 -0
  116. package/public/password_reset.html +65 -0
  117. package/public/password_reset_link_invalid.html +19 -0
  118. package/public/password_reset_success.html +18 -0
  119. package/types/Options/index.d.ts +25 -5
  120. package/public_html/invalid_link.html +0 -45
  121. package/public_html/invalid_verification_link.html +0 -68
  122. package/public_html/link_send_fail.html +0 -45
  123. package/public_html/link_send_success.html +0 -45
  124. package/public_html/password_reset_success.html +0 -27
  125. package/public_html/verify_email_success.html +0 -27
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizmo/parse-server",
3
- "version": "8.6.2-3",
3
+ "version": "9.10.0-1",
4
4
  "description": "An express module providing a Parse-compatible API server",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "files": [
11
11
  "bin/",
12
12
  "lib/",
13
- "public_html/",
13
+ "public/",
14
14
  "views/",
15
15
  "LICENSE",
16
16
  "NOTICE",
@@ -20,66 +20,65 @@
20
20
  ],
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@apollo/server": "4.12.1",
24
- "@graphql-tools/merge": "9.0.24",
25
- "@graphql-tools/schema": "10.0.23",
26
- "@graphql-tools/utils": "10.8.6",
23
+ "@apollo/server": "5.5.0",
24
+ "@as-integrations/express5": "1.1.2",
25
+ "@fastify/busboy": "3.2.0",
26
+ "@graphql-tools/merge": "9.1.7",
27
+ "@graphql-tools/schema": "10.0.31",
28
+ "@graphql-tools/utils": "11.0.0",
27
29
  "@parse/fs-files-adapter": "3.0.0",
28
- "@parse/push-adapter": "6.11.0",
29
- "bcryptjs": "3.0.2",
30
- "commander": "13.1.0",
31
- "cors": "2.8.5",
32
- "deepcopy": "2.1.0",
30
+ "@parse/push-adapter": "8.4.0",
31
+ "bcryptjs": "3.0.3",
32
+ "commander": "14.0.3",
33
+ "cors": "2.8.6",
33
34
  "express": "5.2.1",
34
- "express-rate-limit": "7.5.1",
35
- "follow-redirects": "1.15.9",
36
- "graphql": "16.11.0",
35
+ "express-rate-limit": "8.3.1",
36
+ "follow-redirects": "1.15.11",
37
+ "graphql": "16.13.2",
37
38
  "graphql-list-fields": "2.0.4",
38
39
  "graphql-relay": "0.10.2",
39
40
  "graphql-upload": "15.0.2",
40
41
  "intersect": "1.0.1",
41
- "jsonwebtoken": "9.0.2",
42
+ "jsonwebtoken": "9.0.3",
42
43
  "jwks-rsa": "3.2.0",
43
44
  "ldapjs": "3.0.7",
44
- "lodash": "4.17.21",
45
- "lru-cache": "10.4.0",
46
- "mime": "4.0.7",
47
- "mongodb": "6.20.0",
45
+ "lodash": "4.18.1",
46
+ "lru-cache": "11.2.7",
47
+ "mime": "4.1.0",
48
+ "mongodb": "7.1.0",
48
49
  "mustache": "4.2.0",
49
- "otpauth": "9.4.0",
50
- "parse": "npm:@vizmo/parse@7.1.2-1",
51
- "path-to-regexp": "6.3.0",
52
- "pg-monitor": "3.0.0",
53
- "pg-promise": "12.2.0",
50
+ "otpauth": "9.5.0",
51
+ "parse": "npm:@vizmo/parse@8.6.0-1",
52
+ "path-to-regexp": "8.4.2",
53
+ "pg-monitor": "3.1.0",
54
+ "pg-promise": "12.6.0",
54
55
  "pluralize": "8.0.0",
55
56
  "punycode": "2.3.1",
56
- "rate-limit-redis": "4.2.0",
57
- "redis": "4.7.0",
58
- "semver": "7.7.2",
59
- "subscriptions-transport-ws": "0.11.0",
57
+ "rate-limit-redis": "4.3.1",
58
+ "redis": "5.11.0",
59
+ "semver": "7.7.4",
60
60
  "tv4": "1.3.0",
61
- "uuid": "11.1.0",
62
- "winston": "3.17.0",
61
+ "winston": "3.19.0",
63
62
  "winston-daily-rotate-file": "5.0.0",
64
- "ws": "8.18.2"
63
+ "ws": "8.20.0"
65
64
  },
66
65
  "devDependencies": {
67
- "@actions/core": "1.11.1",
66
+ "@actions/core": "3.0.0",
68
67
  "@apollo/client": "3.13.8",
69
- "@babel/cli": "7.27.0",
70
- "@babel/core": "7.27.4",
71
- "@babel/eslint-parser": "7.28.0",
68
+ "@babel/cli": "7.28.6",
69
+ "@babel/core": "7.29.0",
70
+ "@babel/eslint-parser": "7.28.6",
72
71
  "@babel/plugin-proposal-object-rest-spread": "7.20.7",
73
- "@babel/plugin-transform-flow-strip-types": "7.26.5",
74
- "@babel/preset-env": "7.27.2",
72
+ "@babel/plugin-transform-flow-strip-types": "7.27.1",
73
+ "@babel/preset-env": "7.29.2",
75
74
  "@babel/preset-typescript": "7.27.1",
76
75
  "@saithodev/semantic-release-backmerge": "4.0.1",
77
76
  "@semantic-release/changelog": "6.0.3",
78
77
  "@semantic-release/commit-analyzer": "13.0.1",
79
78
  "@semantic-release/git": "10.0.1",
80
- "@semantic-release/github": "11.0.2",
81
- "@semantic-release/npm": "12.0.1",
82
- "@semantic-release/release-notes-generator": "14.0.3",
79
+ "@semantic-release/github": "12.0.6",
80
+ "@semantic-release/npm": "13.0.0",
81
+ "@semantic-release/release-notes-generator": "14.1.0",
83
82
  "all-node-versions": "13.0.1",
84
83
  "apollo-upload-client": "18.0.1",
85
84
  "clean-jsdoc-theme": "4.3.0",
@@ -87,28 +86,28 @@
87
86
  "deep-diff": "1.0.2",
88
87
  "eslint": "9.27.0",
89
88
  "eslint-plugin-expect-type": "0.6.2",
90
- "eslint-plugin-unused-imports": "4.3.0",
91
- "form-data": "4.0.4",
92
- "globals": "16.2.0",
89
+ "eslint-plugin-unused-imports": "4.4.1",
90
+ "form-data": "4.0.5",
91
+ "globals": "17.3.0",
93
92
  "graphql-tag": "2.12.6",
94
- "jasmine": "5.7.1",
93
+ "jasmine": "6.1.0",
95
94
  "jasmine-spec-reporter": "7.0.0",
96
- "jsdoc": "4.0.4",
95
+ "jsdoc": "4.0.5",
97
96
  "jsdoc-babel": "0.5.0",
98
- "lint-staged": "16.1.0",
99
- "m": "1.9.1",
97
+ "lint-staged": "16.4.0",
98
+ "m": "1.10.0",
100
99
  "madge": "8.0.0",
101
100
  "mock-files-adapter": "file:spec/dependencies/mock-files-adapter",
102
101
  "mock-mail-adapter": "file:spec/dependencies/mock-mail-adapter",
103
102
  "mongodb-runner": "5.9.3",
104
103
  "node-abort-controller": "3.1.1",
105
- "node-fetch": "3.2.10",
104
+ "node-fetch": "3.3.2",
106
105
  "nyc": "17.1.0",
107
- "prettier": "2.0.5",
108
- "semantic-release": "24.2.5",
109
- "typescript": "5.8.3",
110
- "typescript-eslint": "8.33.1",
111
- "yaml": "2.8.0"
106
+ "prettier": "3.8.1",
107
+ "semantic-release": "25.0.3",
108
+ "typescript": "5.9.3",
109
+ "typescript-eslint": "8.58.0",
110
+ "yaml": "2.8.3"
112
111
  },
113
112
  "scripts": {
114
113
  "ci:check": "node ./ci/ciCheck.js",
@@ -122,7 +121,6 @@
122
121
  "build:types": "tsc",
123
122
  "watch": "babel --watch src/ -d lib/ --copy-files",
124
123
  "watch:ts": "tsc --watch",
125
- "test:mongodb:6.0.19": "MONGODB_VERSION=6.0.19 npm run test",
126
124
  "test:mongodb:7.0.16": "MONGODB_VERSION=7.0.16 npm run test",
127
125
  "test:mongodb:8.0.4": "MONGODB_VERSION=8.0.4 npm run test",
128
126
  "test:postgres:testonly": "cross-env PARSE_SERVER_TEST_DB=postgres PARSE_SERVER_TEST_DATABASE_URI=postgres://postgres:password@localhost:5432/parse_server_postgres_adapter_test_database npm run testonly",
@@ -137,12 +135,12 @@
137
135
  "postinstall": "node -p 'require(\"./postinstall.js\")()'",
138
136
  "madge:circular": "node_modules/.bin/madge ./src --circular",
139
137
  "benchmark": "cross-env MONGODB_VERSION=8.0.4 MONGODB_TOPOLOGY=standalone mongodb-runner exec -t standalone --version 8.0.4 -- --port 27017 -- npm run benchmark:only",
140
- "benchmark:only": "node benchmark/performance.js",
138
+ "benchmark:only": "node --expose-gc --max-old-space-size=1024 benchmark/performance.js",
141
139
  "benchmark:quick": "cross-env BENCHMARK_ITERATIONS=10 npm run benchmark:only"
142
140
  },
143
141
  "types": "types/index.d.ts",
144
142
  "engines": {
145
- "node": ">=18.20.4 <19.0.0 || >=20.18.0 <21.0.0 || >=22.12.0 <23.0.0 || >=24.11.0 <25.0.0"
143
+ "node": ">=20.19.0 <21.0.0 || >=22.13.0 <23.0.0 || >=24.11.0 <25.0.0"
146
144
  },
147
145
  "bin": {
148
146
  "parse-server": "bin/parse-server"
@@ -171,4 +169,4 @@
171
169
  "git add"
172
170
  ]
173
171
  }
174
- }
172
+ }
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page demonstrates how to localize using a JSON file that contains the
4
+ translations for each placeholder.
5
+ -->
6
+ <html>
7
+
8
+ <head>
9
+ <title>{{title}}</title>
10
+ </head>
11
+
12
+ <body>
13
+ <h1>{{heading}}</h1>
14
+ <p>{{body}}</p>
15
+ </body>
16
+
17
+ </html>
@@ -0,0 +1,23 @@
1
+ {
2
+ "en": {
3
+ "translation": {
4
+ "title": "Hello!",
5
+ "heading": "Welcome to {{appName}}!",
6
+ "body": "We are delighted to welcome you on board."
7
+ }
8
+ },
9
+ "de": {
10
+ "translation": {
11
+ "title": "Hallo!",
12
+ "heading": "Willkommen bei {{appName}}!",
13
+ "body": "Wir freuen uns, dich begrüßen zu dürfen."
14
+ }
15
+ },
16
+ "de-AT": {
17
+ "translation": {
18
+ "title": "Servus!",
19
+ "heading": "Willkommen bei {{appName}}!",
20
+ "body": "Wir freuen uns, dich begrüßen zu dürfen."
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page demonstrates how to use custom pages in custom routes.
4
+ -->
5
+ <html>
6
+
7
+ <head>
8
+ <title>{{appName}}</title>
9
+ </head>
10
+
11
+ <body>
12
+ <h1>{{appName}}</h1>
13
+ </body>
14
+
15
+ </html>
@@ -0,0 +1,24 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a verify email link with a security
4
+ token that is expired or incorrect. This can either mean the user has clicked
5
+ on a stale link (i.e. re-clicked on the link) or this could be a sign of a
6
+ malicious user trying to tamper with your app.
7
+ -->
8
+ <html>
9
+
10
+ <head>
11
+ <title>Email Verification</title>
12
+ </head>
13
+
14
+ <body>
15
+ <h1>{{appName}}</h1>
16
+ <h1>Expired verification link!</h1>
17
+ <form method="POST" action="{{publicServerUrl}}/apps/{{appId}}/resend_verification_email">
18
+ <input name="token" type="hidden" value="{{token}}">
19
+ <input name="locale" type="hidden" value="{{locale}}">
20
+ <button type="submit">Resend Link</button>
21
+ </form>
22
+ </body>
23
+
24
+ </html>
@@ -0,0 +1,21 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a verify email link with parameters
4
+ that are missing or incorrect. This can either mean the user has incorrectly
5
+ entered a link or this could be a sign of a malicious user trying to tamper
6
+ with your app.
7
+ If the link contains an expired security token (or the email has already
8
+ been verified), this page is not displayed, there is another page for that.
9
+ -->
10
+ <html>
11
+
12
+ <head>
13
+ <title>Email Verification</title>
14
+ </head>
15
+
16
+ <body>
17
+ <h1>{{appName}}</h1>
18
+ <h1>Invalid verification link!</h1>
19
+ </body>
20
+
21
+ </html>
@@ -0,0 +1,21 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a verify email link with a security
4
+ token that is expired or incorrect, then requests to receive another link,
5
+ but it fails because the username is invalid or the email has already been
6
+ verified. This can either mean the user has previously verified the email
7
+ or this could be a sign of a malicious user trying to tamper with your app.
8
+ -->
9
+ <html>
10
+
11
+ <head>
12
+ <title>Email Verification</title>
13
+ </head>
14
+
15
+ <body>
16
+ <h1>{{appName}}</h1>
17
+ <h1>Invalid link!</h1>
18
+ <p>No link sent. User not found or email already verified.</p>
19
+ </body>
20
+
21
+ </html>
@@ -0,0 +1,19 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a verify email link with a
4
+ security token that is expired, then requests to receive another email
5
+ with a new link and the email is sent successfully.
6
+ -->
7
+ <html>
8
+
9
+ <head>
10
+ <title>Email Verification</title>
11
+ </head>
12
+
13
+ <body>
14
+ <h1>{{appName}}</h1>
15
+ <h1>Link sent!</h1>
16
+ <p>A new link has been sent. Check your email.</p>
17
+ </body>
18
+
19
+ </html>
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a verify email link and the
4
+ email gets verified successfully.
5
+ -->
6
+ <html>
7
+
8
+ <head>
9
+ <title>Email Verification</title>
10
+ </head>
11
+
12
+ <body>
13
+ <h1>{{appName}}</h1>
14
+ <h1>Email verified!</h1>
15
+ <p>Successfully verified your email for account: {{username}}.</p>
16
+ </body>
17
+
18
+ </html>
@@ -0,0 +1,65 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when someone clicks a valid 'reset password' link.
4
+ Users should feel free to add to this page (i.e. branding or security widgets)
5
+ but should be sure not to delete any of the form inputs or the javascript from the
6
+ template file. This javascript is what adds the necessary values to authenticate
7
+ this session with Parse.
8
+ The query params 'username' and 'app' hold the friendly names for your current user and
9
+ your app. You should feel free to incorporate their values to make the page more personal.
10
+ If you are missing form parameters in your POST, Parse will navigate back to this page and
11
+ add an 'error' query parameter.
12
+ -->
13
+ <html>
14
+
15
+ <head>
16
+ <title>Password Reset</title>
17
+ </head>
18
+
19
+ <body>
20
+ <h1>{{appName}}</h1>
21
+ <h1>Reset Your Password</h1>
22
+ <noscript><p>We apologize, but resetting your password requires javascript</p></noscript>
23
+ <p>You can set a new Password for your account: {{username}}</p>
24
+ <br />
25
+ <p>{{error}}</p>
26
+ <form id='form' action='{{publicServerUrl}}/apps/{{appId}}/request_password_reset' method='POST'>
27
+ <input name='utf-8' type='hidden' value='✓' />
28
+ <input name="username" type="hidden" id="username" value="{{username}}" />
29
+ <input name="token" type="hidden" id="token" value="{{token}}" />
30
+ <input name="locale" type="hidden" id="locale" value="{{locale}}" />
31
+
32
+ <p>New Password</p>
33
+ <input name="new_password" type="password" id="password" />
34
+ <p>Confirm New Password</p>
35
+ <input name="confirm_new_password" type="password" id="password_confirm" />
36
+ <br />
37
+ <p id="password_match_info"></p>
38
+ <br />
39
+ <button id="change_password">Change Password</button>
40
+ </form>
41
+
42
+ <script>
43
+ window.onload = function() {
44
+ document.getElementById("password").oninput = validatePassword;
45
+ document.getElementById("password_confirm").oninput = validatePassword;
46
+ document.getElementById("change_password").disabled = true;
47
+
48
+ function validatePassword() {
49
+ var pass2 = document.getElementById("password").value;
50
+ var pass1 = document.getElementById("password_confirm").value;
51
+ if(pass1 !== pass2) {
52
+ if(document.getElementById("password_confirm").value) {
53
+ document.getElementById("change_password").disabled = true;
54
+ document.getElementById("password_match_info").innerHTML = "Must match the previous entry";
55
+ }
56
+ } else {
57
+ document.getElementById("change_password").disabled = false;
58
+ document.getElementById("password_match_info").innerHTML = "";
59
+ }
60
+ }
61
+ }
62
+ </script>
63
+ </body>
64
+
65
+ </html>
@@ -0,0 +1,19 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a password reset link with parameters
4
+ that are missing or incorrect. This can either mean the user has incorrectly
5
+ entered a link or this could be a sign of a malicious user trying to tamper
6
+ with your app.
7
+ -->
8
+ <html>
9
+
10
+ <head>
11
+ <title>Password Reset</title>
12
+ </head>
13
+
14
+ <body>
15
+ <h1>{{appName}}</h1>
16
+ <h1>Invalid password reset link!</h1>
17
+ </body>
18
+
19
+ </html>
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a reset password link, then submits
4
+ the form with a new password and the password gets updated successfully.
5
+ -->
6
+ <html>
7
+
8
+ <head>
9
+ <title>Password Reset</title>
10
+ </head>
11
+
12
+ <body>
13
+ <h1>{{appName}}</h1>
14
+ <h1>Success!</h1>
15
+ <p>Your password has been updated.</p>
16
+ </body>
17
+
18
+ </html>
@@ -0,0 +1,24 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a verify email link with a security
4
+ token that is expired or incorrect. This can either mean the user has clicked
5
+ on a stale link (i.e. re-clicked on the link) or this could be a sign of a
6
+ malicious user trying to tamper with your app.
7
+ -->
8
+ <html>
9
+
10
+ <head>
11
+ <title>Email Verification</title>
12
+ </head>
13
+
14
+ <body>
15
+ <h1>{{appName}}</h1>
16
+ <h1>Expired verification link!</h1>
17
+ <form method="POST" action="{{publicServerUrl}}/apps/{{appId}}/resend_verification_email">
18
+ <input name="token" type="hidden" value="{{token}}">
19
+ <input name="locale" type="hidden" value="{{locale}}">
20
+ <button type="submit">Resend Link</button>
21
+ </form>
22
+ </body>
23
+
24
+ </html>
@@ -0,0 +1,21 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a verify email link with parameters
4
+ that are missing or incorrect. This can either mean the user has incorrectly
5
+ entered a link or this could be a sign of a malicious user trying to tamper
6
+ with your app.
7
+ If the link contains an expired security token (or the email has already
8
+ been verified), this page is not displayed, there is another page for that.
9
+ -->
10
+ <html>
11
+
12
+ <head>
13
+ <title>Email Verification</title>
14
+ </head>
15
+
16
+ <body>
17
+ <h1>{{appName}}</h1>
18
+ <h1>Invalid verification link!</h1>
19
+ </body>
20
+
21
+ </html>
@@ -0,0 +1,21 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a verify email link with a security
4
+ token that is expired or incorrect, then requests to receive another link,
5
+ but it fails because the username is invalid or the email has already been
6
+ verified. This can either mean the user has previously verified the email
7
+ or this could be a sign of a malicious user trying to tamper with your app.
8
+ -->
9
+ <html>
10
+
11
+ <head>
12
+ <title>Email Verification</title>
13
+ </head>
14
+
15
+ <body>
16
+ <h1>{{appName}}</h1>
17
+ <h1>Invalid link!</h1>
18
+ <p>No link sent. User not found or email already verified.</p>
19
+ </body>
20
+
21
+ </html>
@@ -0,0 +1,19 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a verify email link with a
4
+ security token that is expired, then requests to receive another email
5
+ with a new link and the email is sent successfully.
6
+ -->
7
+ <html>
8
+
9
+ <head>
10
+ <title>Email Verification</title>
11
+ </head>
12
+
13
+ <body>
14
+ <h1>{{appName}}</h1>
15
+ <h1>Link sent!</h1>
16
+ <p>A new link has been sent. Check your email.</p>
17
+ </body>
18
+
19
+ </html>
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a verify email link and the
4
+ email gets verified successfully.
5
+ -->
6
+ <html>
7
+
8
+ <head>
9
+ <title>Email Verification</title>
10
+ </head>
11
+
12
+ <body>
13
+ <h1>{{appName}}</h1>
14
+ <h1>Email verified!</h1>
15
+ <p>Successfully verified your email for account: {{username}}.</p>
16
+ </body>
17
+
18
+ </html>
@@ -0,0 +1,65 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when someone clicks a valid 'reset password' link.
4
+ Users should feel free to add to this page (i.e. branding or security widgets)
5
+ but should be sure not to delete any of the form inputs or the javascript from the
6
+ template file. This javascript is what adds the necessary values to authenticate
7
+ this session with Parse.
8
+ The query params 'username' and 'app' hold the friendly names for your current user and
9
+ your app. You should feel free to incorporate their values to make the page more personal.
10
+ If you are missing form parameters in your POST, Parse will navigate back to this page and
11
+ add an 'error' query parameter.
12
+ -->
13
+ <html>
14
+
15
+ <head>
16
+ <title>Password Reset</title>
17
+ </head>
18
+
19
+ <body>
20
+ <h1>{{appName}}</h1>
21
+ <h1>Reset Your Password</h1>
22
+ <noscript><p>We apologize, but resetting your password requires javascript</p></noscript>
23
+ <p>You can set a new Password for your account: {{username}}</p>
24
+ <br />
25
+ <p>{{error}}</p>
26
+ <form id='form' action='{{publicServerUrl}}/apps/{{appId}}/request_password_reset' method='POST'>
27
+ <input name='utf-8' type='hidden' value='✓' />
28
+ <input name="username" type="hidden" id="username" value="{{username}}" />
29
+ <input name="token" type="hidden" id="token" value="{{token}}" />
30
+ <input name="locale" type="hidden" id="locale" value="{{locale}}" />
31
+
32
+ <p>New Password</p>
33
+ <input name="new_password" type="password" id="password" />
34
+ <p>Confirm New Password</p>
35
+ <input name="confirm_new_password" type="password" id="password_confirm" />
36
+ <br />
37
+ <p id="password_match_info"></p>
38
+ <br />
39
+ <button id="change_password">Change Password</button>
40
+ </form>
41
+
42
+ <script>
43
+ window.onload = function() {
44
+ document.getElementById("password").oninput = validatePassword;
45
+ document.getElementById("password_confirm").oninput = validatePassword;
46
+ document.getElementById("change_password").disabled = true;
47
+
48
+ function validatePassword() {
49
+ var pass2 = document.getElementById("password").value;
50
+ var pass1 = document.getElementById("password_confirm").value;
51
+ if(pass1 !== pass2) {
52
+ if(document.getElementById("password_confirm").value) {
53
+ document.getElementById("change_password").disabled = true;
54
+ document.getElementById("password_match_info").innerHTML = "Must match the previous entry";
55
+ }
56
+ } else {
57
+ document.getElementById("change_password").disabled = false;
58
+ document.getElementById("password_match_info").innerHTML = "";
59
+ }
60
+ }
61
+ }
62
+ </script>
63
+ </body>
64
+
65
+ </html>
@@ -0,0 +1,19 @@
1
+ <!DOCTYPE html>
2
+ <!--
3
+ This page is displayed when a user opens a password reset link with parameters
4
+ that are missing or incorrect. This can either mean the user has incorrectly
5
+ entered a link or this could be a sign of a malicious user trying to tamper
6
+ with your app.
7
+ -->
8
+ <html>
9
+
10
+ <head>
11
+ <title>Password Reset</title>
12
+ </head>
13
+
14
+ <body>
15
+ <h1>{{appName}}</h1>
16
+ <h1>Invalid password reset link!</h1>
17
+ </body>
18
+
19
+ </html>