Eror Login Admin Drupal

Forums: 

Mohon bantuannya para master drupal..
saya gabisa login admin di web padahal username sama passwordnya udah bener..
pas login keluar tulisan "<strong>You are not authorized to access this page.</strong>"

sekali lagi mohon bantuannya..

thanks

Foto Ananto's

itu setelah kluar tulisan seperti itu, sudah ter login atau masi belum login ?

soalnya mungkin pada waktu anda login, anda lagi mengakses suatu halaman yang ada ga punya akses. Jadi anda tetap bisa login, tp di halaman itu anda ga bisa akses.

Foto anodenymous's

Hope it helps :)

#Drupal 6 Reset your admin user pass on  using mysql query 

update users set pass=md5("newspass") where uid = 1;

#Drupal 7. Recover, unblock admin acoount blocking after 5 failed login attempts.

DELETE FROM `flood`;

#Reset pass using file drupal 7 only

https://drupal.org/node/1556488

1. First, create a file with a random name (filename.php for example).
2. Copy and paste the following contents into the file, and save the file.

<?php
define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
require_once DRUPAL_ROOT . '/includes/password.inc';
if (isset($_GET['pass']) && !empty($_GET['pass'])) {
  $newhash =  user_hash_password($_GET['pass']);
}
else {
  die('Retry with ?pass=PASSWORD set in the URL');
}

$updatepass = db_update('users') 
  ->fields(array(
    'pass' => $newhash,
// Uncomment the following lines to reset the administrative username and/or email address, if necessary.
//    'name' => 'admin',
//    'mail' => 'yourmail@example.com'
  ))
  ->condition('uid', '1', '=')
  ->execute();
print "Done. Please delete this file immediately!";
drupal_exit();
?>

3. Upload the file to the root of the Drupal installation directory (i.e., where index.php, update.php, robots.txt and other files and directories exist).

4. Execute the script, by requesting the file in a web browser using the following URL pattern:
http://example.com/filename.php?pass=mypassword

 

 

">Honeypot