mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 09:24:00 +00:00
Require registration application by default (#2229)
This commit is contained in:
parent
00b0b26dfa
commit
7e13406979
5 changed files with 18 additions and 7 deletions
|
@ -16,7 +16,7 @@
|
||||||
"eslint": "^7.30.0",
|
"eslint": "^7.30.0",
|
||||||
"eslint-plugin-jane": "^9.0.3",
|
"eslint-plugin-jane": "^9.0.3",
|
||||||
"jest": "^27.0.6",
|
"jest": "^27.0.6",
|
||||||
"lemmy-js-client": "0.13.1-rc.1",
|
"lemmy-js-client": "0.16.0-rc.1",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
"prettier": "^2.3.2",
|
"prettier": "^2.3.2",
|
||||||
"ts-jest": "^27.0.3",
|
"ts-jest": "^27.0.3",
|
||||||
|
|
|
@ -50,7 +50,6 @@ import {
|
||||||
ResolveObjectResponse,
|
ResolveObjectResponse,
|
||||||
ResolveObject,
|
ResolveObject,
|
||||||
CreatePostReport,
|
CreatePostReport,
|
||||||
PostReport,
|
|
||||||
ListPostReports,
|
ListPostReports,
|
||||||
PostReportResponse,
|
PostReportResponse,
|
||||||
ListPostReportsResponse,
|
ListPostReportsResponse,
|
||||||
|
@ -59,6 +58,7 @@ import {
|
||||||
ListCommentReports,
|
ListCommentReports,
|
||||||
ListCommentReportsResponse,
|
ListCommentReportsResponse,
|
||||||
DeleteAccount,
|
DeleteAccount,
|
||||||
|
DeleteAccountResponse
|
||||||
} from 'lemmy-js-client';
|
} from 'lemmy-js-client';
|
||||||
|
|
||||||
export interface API {
|
export interface API {
|
||||||
|
@ -132,6 +132,13 @@ export async function setupLogins() {
|
||||||
gamma.auth = res[2].jwt;
|
gamma.auth = res[2].jwt;
|
||||||
delta.auth = res[3].jwt;
|
delta.auth = res[3].jwt;
|
||||||
epsilon.auth = res[4].jwt;
|
epsilon.auth = res[4].jwt;
|
||||||
|
|
||||||
|
// regstration applications are now enabled by default, need to disable them
|
||||||
|
await alpha.client.editSite({ require_application: false, auth: alpha.auth});
|
||||||
|
await beta.client.editSite({ require_application: false, auth: beta.auth});
|
||||||
|
await gamma.client.editSite({ require_application: false, auth: gamma.auth});
|
||||||
|
await delta.client.editSite({ require_application: false, auth: delta.auth});
|
||||||
|
await epsilon.client.editSite({ require_application: false, auth: epsilon.auth});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function createPost(
|
export async function createPost(
|
||||||
|
@ -552,7 +559,7 @@ export async function saveUserSettings(
|
||||||
|
|
||||||
export async function deleteUser(
|
export async function deleteUser(
|
||||||
api: API,
|
api: API,
|
||||||
): Promise<LoginResponse> {
|
): Promise<DeleteAccountResponse> {
|
||||||
let form: DeleteAccount = {
|
let form: DeleteAccount = {
|
||||||
auth: api.auth,
|
auth: api.auth,
|
||||||
password
|
password
|
||||||
|
|
|
@ -3076,10 +3076,10 @@ language-tags@^1.0.5:
|
||||||
dependencies:
|
dependencies:
|
||||||
language-subtag-registry "~0.3.2"
|
language-subtag-registry "~0.3.2"
|
||||||
|
|
||||||
lemmy-js-client@0.13.1-rc.1:
|
lemmy-js-client@0.16.0-rc.1:
|
||||||
version "0.13.1-rc.1"
|
version "0.16.0-rc.1"
|
||||||
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.13.1-rc.1.tgz#e1af4749a5493954a17f87b7b20dcccb8c585f22"
|
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.16.0-rc.1.tgz#14c4a526abf4b171c8afe4efbe2a62dcaf6a6f17"
|
||||||
integrity sha512-fncCq6Zu8s6GpeCrkmJS8/rqXcyrJ8p8EyWfXiiuZlWkgzOIi+qZjTRnO63wI6DomYwVOjwk7sry4RbOJSdK5Q==
|
integrity sha512-0hR/gHHsokp46whIHGMBQO2zBKWM7bT6mwKNMZxPvyJo+YW9EbKTO5edjF5E4v8nf3FuIE+gFtm5NFAjCaeWJg==
|
||||||
|
|
||||||
leven@^3.1.0:
|
leven@^3.1.0:
|
||||||
version "3.1.0"
|
version "3.1.0"
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
alter table site alter column require_application set default false;
|
||||||
|
alter table site alter column application_question set default null;
|
|
@ -0,0 +1,2 @@
|
||||||
|
alter table site alter column require_application set default true;
|
||||||
|
alter table site alter column application_question set default 'To verify that you are human, please explain why you want to create an account on this site';
|
Loading…
Reference in a new issue