-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* make stats filtering consistent * add enrollment service to grpc router * add enrollment table * add enrollment struct * implement adding enrollment session * validate enrollment session * implement remaining endpoints * make password optional * make password optional when creating user * add manual enrollment trigger endpoint skeleton * trigger enrollment when creating a user without password * add toggle for sending notification * handle LDAP sync during enrollment * add enrollment timeout settings to main config * return token when starting enrollment * implement manual enrollment start * add enrollment service url to config * update protos * send enrollment start email * send welcome email * add enrollment settings columns * update settings struct * add initial enrollment settings page * pass configured message in email * convert welcome message to html * allow creating user without password * add enrollment test * initial polish translation --------- Co-authored-by: Maciej Wójcik <[email protected]>
- Loading branch information
Showing
40 changed files
with
2,122 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
DROP TABLE enrollment; | ||
|
||
ALTER TABLE "user" ALTER COLUMN password_hash SET NOT NULL; | ||
|
||
ALTER TABLE settings DROP COLUMN enrollment_vpn_step_optional; | ||
ALTER TABLE settings DROP COLUMN enrollment_welcome_message; | ||
ALTER TABLE settings DROP COLUMN enrollment_welcome_email; | ||
ALTER TABLE settings DROP COLUMN enrollment_use_welcome_message_as_email; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CREATE TABLE enrollment ( | ||
id text PRIMARY KEY NOT NULL, | ||
user_id bigint NOT NULL, | ||
admin_id bigint NOT NULL, | ||
created_at timestamp without time zone NOT NULL, | ||
expires_at timestamp without time zone NOT NULL, | ||
used_at timestamp without time zone, | ||
FOREIGN KEY(user_id) REFERENCES "user"(id) ON DELETE CASCADE, | ||
FOREIGN KEY(admin_id) REFERENCES "user"(id) | ||
); | ||
|
||
ALTER TABLE "user" ALTER COLUMN password_hash DROP NOT NULL; | ||
|
||
ALTER TABLE settings ADD COLUMN enrollment_vpn_step_optional boolean NOT NULL default true; | ||
ALTER TABLE settings ADD COLUMN enrollment_welcome_message text NULL; | ||
ALTER TABLE settings ADD COLUMN enrollment_welcome_email text NULL; | ||
ALTER TABLE settings ADD COLUMN enrollment_use_welcome_message_as_email boolean NOT NULL default true; |
Oops, something went wrong.