view mod_register_json/register_json/template/form_t.html @ 5418:f2c7bb3af600

mod_http_oauth2: Add role selector to consent page List includes all roles available to the user, if more than one. Defaults to either the first role in the scope string or the users primary role. Earlier draft listed all roles, but having options that can't be selected is bad UX and the entire list of all roles on the server could be long, and perhaps even sensitive. Allows e.g. picking a role with fewer permissions than what might otherwise have been selected. UX wise, doing this with more checkboxes or possibly radio buttons would have been confusion and/or looked messier. Fixes the previous situation where unselecting a role would default to the primary role, which could be more permissions than requested.
author Kim Alvefur <zash@zash.se>
date Fri, 05 May 2023 01:23:13 +0200
parents 7c04c5856daa
children
line wrap: on
line source

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Prosody User Registration Verification</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
</head>

<body>
<div id='top'>
  <div id='header'>
    <img src="images/header.png" />
  </div>
</div>

<div id='main'>
  <p>Please input below the identification string you received by e-mail, to complete your
  <br />xmpp account registration.</p>
  <form action='%REG-URL' method='post' accept-charset='UTF-8' id='uuid'>
    <div><label for='set-uuid'>UUID:</label></div>
    <div><input type='text' name='uuid' id='set-uuid' value="" /></div>
    <div><input type='submit' id='connect' value='Complete Registration' class='btn' /></div>
  </form>
</div>

</body>
</html>