<commit_before><?php

final class PhabricatorPeopleNewController
  extends PhabricatorPeopleController {

  public function handleRequest(AphrontRequest $request) {
    $type = $request->getURIData('type');
    $admin = $request->getUser();

    $is_bot = false;
    $is_list = false;
    switch ($type) {<commit_msg>Consistently require MFA on the actual user creation flow<commit_after><?php

final class PhabricatorPeopleNewController
  extends PhabricatorPeopleController {

  public function handleRequest(AphrontRequest $request) {
    $type = $request->getURIData('type');
    $admin = $request->getUser();

    id(new PhabricatorAuthSessionEngine())->requireHighSecuritySession(
      $admin,
      $request,
      $this->getApplicationURI());

    $is_bot = false;
    $is_list = false;
    switch ($type) {
{'fraction_non_alphanumeric': 0.11519607843137254, 'fraction_numerical': 0.0, 'mean_word_length': 4.483221476510067, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6079748', 'n_tokens_mistral': 249, 'n_tokens_neox': 245, 'n_words': 53}