ucam-department-of-psychiatry / camcops

Cambridge Cognitive and Psychiatric Test Kit (CamCOPS)
Other
12 stars 8 forks source link

Remember old details when displaying the patient registration dialog #345

Closed martinburchell closed 3 months ago

martinburchell commented 3 months ago

Fixes #104

When a patient retries registration after a failed attempt (or a successful one for that matter) the server URL and access key from the previous attempt are displayed. This should improve the user experience if there is a network problem or the URL has been entered incorrectly. It should be impossible for the user to have entered an invalid access key and this shouldn't need changing unless they have been given that of another patient.

The previously entered URL is reconstructed from the host, port, path and https scheme is assumed. So it may not appear exactly as entered by the user. http:// will be converted silently to https:// and if no port is given, it will appear as the default 443. We could choose not to display port 443 if we thought it would be confusing.