Господа, помогите разобраться. У меня след проблема.
Установил я drupal 4.7.4. Все как обычно. Настроил бд, первый старт друпала, создал 1-го пользователя (супер админа). Затем пытаюсь зайти используя его имя и пароль и бац. выдает: Sorry. Unrecognized username or password.
Смотрю — что там в БД? Хм, все как надо пользователь с нужным именем и паролем создан. Читал на англ. форуме, что может быть трабла в куки, кэше. Попробовал в новом браузере — не прет
Думаю, ок, попробую востановить пароль, но опять облом — пишет: Unable to send mail.
В БД надыбыл сообщение от watchdog: Login attempt failed for username
при провальной попытке логина пишет — Login attempt failed for username
В php я полный новичек поэтому даже не могу прикинуть куда лезь решать данную проблему. Ести ли у друпала где логи более информативные чем watchdog, чтобы понять где собака зарыта?
Сам я из мира java, а как php отладка делается?
На хостинге стоит php5 и mysql5.
Локально все работает зашибись, пролема явно хостинге, в только в чем. буду благодарен за любую инфу.
P.s. админ хостинга справшивал, что я использую для отправки писем, smtp, sendmail или php mail(). Рекомендовал последнее. Так а что друпал использует?
- Drupal 5 и более старые версии
- Блог
- Войдите или зарегистрируйтесь, чтобы отправлять комментарии
Комментарии
Для отправки писем Drupal использует функцию PHP mail(), но можно настроить исползьование SMTP через внешнюю библиотеку. Можно попробовать поменять пароль пользователя — он зашифрован MD5 и хранятся в таблице users в поле pass. С помощью phpmyadmin можно сменить (вызов MD5 там же в phpmyadmin можно сделать).
—
Администратор сайта «Drupal — Россия»
на вопросы по Drupal отвечаю только на форумах, не пишите в почту и приватом!
In user_login block form alter I’m attaching a validator : ws_res_auth_authenticate ( the last one in the dsm output below) and logging in a user using this code:
Now this function is correctly logging in the user, opening a session since on refreshing the page it shows me logged in.
But the problem is that it is showing error "Sorry, unrecognized username or password.". In reality it appears to have logged in since on refresh it shows logged-in area and other My Account stuff. So it isn’t redirecting. Just redirect it I’m calling PHP header function, then a "die".
In other words after pressing submit with login/passwd it shows error : "Sorry, unrecognized username or password." but if I refresh this page it shows logged-in area.
I’ve tried changing the order of validators in the form_alter so that my validator ‘res_auth_authenticate’ is called first. But still the same problem.
What am I missing?
What I’m trying to do
I’ve three types of accounts: Local account, on LDAP and CSV source. What I want is that if the logged in user is found in the CSV source, I want to log the user in.
Title
- Quote
- Login to comment
- Quote
- Edit
- Delete Deleted
- Are you sure
- Yes
- No
- Undelete
- View in Mod Tool
Rioter Comments
Source:
Facechecking the brush is dangerous, and so is facechecking the web. Other websites may not be as well-warded as ours, so please use your best judgement when clicking on unknown links.
You are going to:
You are leaving LeagueofLegends.com
Facechecking the brush is dangerous, and so is facechecking the web. Other websites may not be as well-warded as ours, so please use your best judgement when clicking on unknown links.