mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Add the ability to setup OT&E from the web console
We create a new endpoint with a simple form that will let admins (including support) setup OT&E for registrars. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=226570568
This commit is contained in:
parent
040319a95d
commit
2777018d6a
17 changed files with 804 additions and 34 deletions
|
@ -41,4 +41,16 @@ public final class RegistrarConsoleModule {
|
|||
static String provideClientId(HttpServletRequest req) {
|
||||
return extractRequiredParameter(req, PARAM_CLIENT_ID);
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Parameter("email")
|
||||
static Optional<String> provideOptionalEmail(HttpServletRequest req) {
|
||||
return extractOptionalParameter(req, "email");
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Parameter("email")
|
||||
static String provideEmail(HttpServletRequest req) {
|
||||
return extractRequiredParameter(req, "email");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue