Skip to content

Commit

Permalink
typo fixes requested by atrol
Browse files Browse the repository at this point in the history
  • Loading branch information
V1pr committed Jun 12, 2018
1 parent 71aba7a commit b036694
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions core/authentication_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -806,13 +806,13 @@ function auth_process_plain_password( $p_password, $p_salt = null, $p_method = n
}

/**
* Generate a random password. If no lenth is supplied, than the default value of 16 will be used.
* Generate a random password. If no length is supplied, than the default value of 16 will be used.
* @todo create memorable passwords?
* @param int $p_length Requested password length
* @return string random password
* @access public
*/
function auth_generate_random_password($p_length=16) {
function auth_generate_random_password( $p_length = 16 ) {
return crypto_generate_uri_safe_nonce( $p_length );
}

Expand Down
10 changes: 5 additions & 5 deletions core/classes/AuthFlags.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class AuthFlags {
/**
* The page to use for validating credentials. This can be the default validator page
* provided by MantisBT, an auth plugin provided page that validates the credentials
* the credentials againts an external source (and creates user if autoprovision is set)
* against an external source (and creates user if autoprovision is set)
*
* @see $login_page
* @see $logout_page
Expand Down Expand Up @@ -444,8 +444,8 @@ function getReauthenticationLifetime() {
* @return void
* @see getAutoprovisionCapability()
*/
function setAutoprovisionCapability( $autoprov ) {
$this->autoprovision_capable = $autoprov;
function setAutoprovisionCapability( $p_autoprov ) {
$this->autoprovision_capable = $p_autoprov;
}

/**
Expand All @@ -455,11 +455,11 @@ function setAutoprovisionCapability( $autoprov ) {
* @see setAutoprovisionCapability()
*/
function getAutoprovisionCapability() {
if( is_null( $this->autoprovision_capability ) ) {
if( is_null( $this->autoprovision_capable ) ) {
return false;
}

return $this->autoprovision_capability;
return $this->autoprovision_capable;
}

}
Expand Down
2 changes: 1 addition & 1 deletion login_password_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
<?php echo $t_form_title ?>
</h4>
<div class="space-10"></div>
<form id="login-form" method="post" action="<?php echo auth_authenticator_page($t_user_id, $t_username); ?>">
<form id="login-form" method="post" action="<?php echo auth_authenticator_page( $t_user_id, $t_username ); ?>">
<fieldset>

<?php
Expand Down

0 comments on commit b036694

Please sign in to comment.