@Controller @RequestMapping(value="/plugin/useraccount") public class UserAccountController extends PluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
UserAccountController(UserAccountService userAccountService,
RecoveryService recoveryService,
TwoFactorAuthenticationService twoFactorAuthenticationService,
AuthenticationSettings authenticationSettings) |
| Modifier and Type | Method and Description |
|---|---|
String |
disableTwoFactorAuthentication(org.springframework.ui.Model model) |
String |
enableTwoFactorAuthentication() |
Map<String,List<String>> |
generateRecoveryCodes() |
Map<String,List<String>> |
getRecoveryCodes() |
String |
resetTwoFactorAuthentication() |
String |
showAccount(org.springframework.ui.Model model,
boolean showCodes) |
void |
updateAccount(org.molgenis.ui.admin.user.AccountUpdateRequest updateRequest) |
void |
updateUserLanguage(String languageCode) |
getId, getPluginSettings, getUripublic static final String ID
public static final String URI
public UserAccountController(UserAccountService userAccountService, RecoveryService recoveryService, TwoFactorAuthenticationService twoFactorAuthenticationService, AuthenticationSettings authenticationSettings)
@GetMapping public String showAccount(org.springframework.ui.Model model, @RequestParam(defaultValue="false") boolean showCodes)
@PostMapping(value="/language/update",
produces="application/json")
@ResponseStatus(value=NO_CONTENT)
public void updateUserLanguage(@RequestParam(value="languageCode")
String languageCode)
@PostMapping(value="/update",
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updateAccount(@NotNull
org.molgenis.ui.admin.user.AccountUpdateRequest updateRequest)
@PostMapping(value="/2fa/enable") public String enableTwoFactorAuthentication()
@PostMapping(value="/2fa/disable") public String disableTwoFactorAuthentication(org.springframework.ui.Model model)
@PostMapping(value="/2fa/reset") public String resetTwoFactorAuthentication()
@GetMapping(value="recoveryCodes") @ResponseBody public Map<String,List<String>> getRecoveryCodes()
Copyright © 2017. All rights reserved.