Skip to content

Add ability to cancel request, require confirmation of account policy, fix dubious redirect #223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
May 23, 2025

Conversation

bryank-cs
Copy link
Contributor

Modify the new_account page to allow a user without an account to cancel a pending request for either a PI account or joining a group.

bryank-cs added 2 commits May 19, 2025 09:52
    Required some changes to phpunit-bootstrap to allow GET parameters
    Modified http_post/http_get for redirect and save previous $_SERVER
    Added missing mail templates; made different one for group request
    Cleanup string formatting
@bryank-cs bryank-cs requested a review from simonLeary42 May 20, 2025 01:44
Co-authored-by: simonLeary42 <71396965+simonLeary42@users.noreply.github.com>
bryank-cs and others added 4 commits May 21, 2025 15:58
Co-authored-by: simonLeary42 <71396965+simonLeary42@users.noreply.github.com>
    Require confirmation of account policy for PI requests
@simonLeary42 simonLeary42 changed the title Add ability to cancel request Add ability to cancel request, require confirmation of account policy May 23, 2025
    Use UnitySite::redirect instead of doing it ourselves
    Move special logic from UnitySite::redirect to header.php
    Fix PI checkbox being required by default
@simonLeary42 simonLeary42 changed the title Add ability to cancel request, require confirmation of account policy Add ability to cancel request, require confirmation of account policy, fix dubious redirect May 23, 2025
@simonLeary42
Copy link
Collaborator

resolves #224

@simonLeary42
Copy link
Collaborator

simonLeary42 commented May 23, 2025

Can the EULA check box and the account policy check box work the same? EULA throws an error after submit, account policy throws error before submit. Ideally the submit button would also be grayed out until both are checked but that can be another PR.

@simonLeary42
Copy link
Collaborator

Can the EULA check box and the account policy check box work the same? EULA throws an error after submit, account policy throws error before submit. Ideally the submit button would also be grayed out until both are checked but that can be another PR.

..err, I was wrong, they both make an error after submit.

* add period

* getNonExistentUser should be in htpasswd

* move account policy checkbox down
* add period

* getNonExistentUser should be in htpasswd

* move account policy checkbox down

* rewrite

* remove errors

* remove debugging

* fix autoload location

* remove unnecessary redirect

* revert unnecessary changes

* phpcs

* confirm account policy in test

* post not get

* agree not true

* agree not true

* add comments

* revert
@simonLeary42
Copy link
Collaborator

demo.mov

@simonLeary42
Copy link
Collaborator

image

image

@bryank-cs bryank-cs merged commit c0b7e1e into main May 23, 2025
1 of 3 checks passed
@simonLeary42 simonLeary42 deleted the cancel branch June 6, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants