a1eX28 Posted June 1, 2014 Share Posted June 1, 2014 Подскажите как можно сменить у всех пользователей пароли (на данный момент пароли у всех юзеров одинаковые)?Видимо нужен SQL запрос. Но там есть hash и salt.Немного теряюсь в решении данной проблемы. Link to comment Share on other sites More sharing options...
siv1987 Posted June 2, 2014 Share Posted June 2, 2014 Если сменить на случайный пароль, то примерно так: UPDATE ibf_members SET member_login_key='', members_pass_hash=MD5(CONCAT(MD5(members_pass_salt), MD5(CONV(FLOOR(RAND() * 1000000000), 20, 36)))) 1 Link to comment Share on other sites More sharing options...
maratoriy Posted December 5, 2015 Share Posted December 5, 2015 у меня аналогичная проблема, только мне нужно массово сменить на конкретный пароль. Подскажите, пожалуйста, как это сделать. Спасибо Link to comment Share on other sites More sharing options...
siv1987 Posted December 5, 2015 Share Posted December 5, 2015 Установить новый пароль для всех пользователей: UPDATE ibf_members SET member_login_key='', members_pass_hash=MD5(CONCAT(MD5(members_pass_salt), MD5('новый пароль'))) Link to comment Share on other sites More sharing options...
maratoriy Posted December 20, 2015 Share Posted December 20, 2015 Спасибо, помогло.Подскажите, пожалуйста, какой командой массово изменить email всем пользователям, чтобы он был у всех одинаковый? Link to comment Share on other sites More sharing options...
siv1987 Posted December 20, 2015 Share Posted December 20, 2015 Подскажите, пожалуйста, какой командой массово изменить email всем пользователям, чтобы он был у всех одинаковый?email является уникальным идентификатором пользователя. Прочитайте пожалуйста правила форума - вопросы не касающиеся темы задаем в новой теме. Link to comment Share on other sites More sharing options...
maratoriy Posted December 21, 2015 Share Posted December 21, 2015 Мне это нужно для ботов http://ipbskins.ru/forum/topic14251.html Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now