password() public method

Set new password for current user.
Since: 2.0.0
public password ( )
});
$routes->post('/login', 'guest', function () {
    AuthController::handle_login();
});
$routes->get('/logout', 'auth', function () {
    AuthController::logout();
});
// Profile
$routes->get('/profile/edit', 'auth', function () {
    ProfileController::edit();
});
$routes->post('/profile/update', 'auth', function () {
    ProfileController::edit();
});
$routes->get('/profile/password', 'auth', function () {
    ProfileController::password();
});
$routes->post('/profile/password/update', 'auth', function () {
    ProfileController::updatePassword();
});
// Controlpanel
$routes->get('/controlpanel', 'admin', function () {
    AuthController::controlpanel();
});
// Users
$routes->get('/users', 'admin', function () {
    UsersController::index();
});
$routes->get('/users/create', 'admin', function () {
    UsersController::create();
});