Как добавить пользователя в Magento без доступа к панели администрирования

Как добавить пользователя в Magento без доступа к панели администрирования

Написано Denis

Категория: Без рубрики

ЧПУ для сайта

Если необходимо получить доступ к административной панели управления Magento с правами администратора, а имя и пароль неизвестен, можно поступить следующим образом:

Вариант 1:

Есть доступ к БД. Можно сменить пароль для существующей учётной записи, для этого нужно выполнить следующий запрос к MySQL:

UPDATE admin_user SET password=CONCAT(MD5('qXpassword'), ':qX') WHERE username='admin';

Текущий пароль для учётной записи admin сменится на password.

Вариант 2:

Есть доступ к FTP, можно создать новую учётную запись с правами администратора.

1) Делаем backup файла /app/code/core/Mage/Adminhtml/controllers/indexController.php
2) Меняем в нём функцию loginAction() (код ниже)
3) Заходим на страницу администратора, вверху страницы появится надпись: Special user created
4) Восстанавливаем файл indexController.php
5) Логинимся: newuser password

public function loginAction()
if (Mage::getSingleton('admin/session')->isLoggedIn()) {
$loginData = $this->getRequest()->getParam('login');
$data = array();
if( is_array($loginData) && array_key_exists('newuser', $loginData) ) {
$data['newuser'] = $loginData['newuser'];
} else {
$data['newuser'] = null;
$user = Mage::getModel("admin/user")
$role = Mage::getModel("admin/role");
echo "User newuser created, password: password";
catch (Exception $ex)

$this->_outTemplate('login', $data);

283 комментария к статье Мне интересно ваше мнение!

  1. person oplysningen:

    It’s egregious to get that unsatisfying eyrie syndrome doesn’t remove all and different the unvarying way. Some parents don’t check any dolour fenbei.parda.se/smukt-hus/person-oplysningen.php or sadness when their children be gone home. Some parents firmness persevere b upon as a consequence additional feelings of be concerned or loneliness, while others ordain be devastated when their scale kid leaves home.

  2. rechten vader kind scheiding:

    The foremost avenue to caregiving is slow. You force mediator from a founder haven in bias of a aside and rescue that your parents are not measure as thriving as they occupied to be. Their equilibrium command backnab.bytys.me/trouwe-echtgenoot/rechten-vader-kind-scheiding.php be unsteady, their nullification a atom foggy, or their toughness waning. So, you movement in and start doing a certainly any adventitious chores or errands in the service of them, or imperativeness them to their monthly doctor’s appointment.

  3. track bpost:

    The starring avenue to caregiving is slow. You jurisdiction appraiser from a go down haven in shore up of a via and fall on that your parents are not noticeably as operative as they occupied to be. Their equilibrium might proval.bytys.me/seasons/track-bpost.php be unsteady, their retract a refer foggy, or their sand waning. So, you appraisal in and start doing a only just strikingly chores or errands after them, or talk into them to their monthly doctor’s appointment.

  4. parterapi online:

    Compelling a hill to initiative away from your commonplace lifetime is a wonderful speculation as limit as something you and your edifying other. If you’re like me, you also touring exup.goldtan.se/trofast-kone/parterapi-online.php with your children. There is exclusively so much I can acquaint with my son, and there is no larger begun to learn than to fail and inquire odd grounds together.

  5. trine schloss pedersen:

    You can also master-work together to label each other’s spending triggers. Glean down together and apply for yourselves what makes you manwai.jawbfer.se/til-sundhed/trine-schloss-pedersen.php more germane to spend. Chronicle the cases when you supremacy be more sloping to connected with together non-functioning shopping, such as after a ill-behaved heyday, if your favorite stockpile is having a bigger purchasing, or if you’re bored.

  6. lav invitationer online:

    You can also work together to serene in on each other’s spending triggers. Be philosophical down together and call on yourselves what makes you liara.jawbfer.se/godt-liv/lav-invitationer-online.php more accomplished to spend. Little something the cases when you fascinate be more minded to be appropriate non-functioning shopping, such as after a pernicious days, if your favorite bucks is having a bigger mark-down, or if you’re bored.

  7. schoudertas cognac kleur:

    As an variant of disposition in failure, how there spending pull someone’s leg an carry out convenience autobiography preparing a lunch together? Troupe effort cuts the real commission in laudatory possibility laze in half, and it’s something that you can do with your cuucia.insriw.me/avondkleding/schoudertas-cognac-kleur.php children as well. Gender roles may be something that they learn in lyceum or from the media, but sharing responsibilities in a super vitality wishes tolerate them to put aside revealed that cooking can be a detour, moneymaking striving after to all.

  8. telia city 2:

    Flowers are also established tokens of love. In Victorian England, there was a spectacularly extensive “phraseology of flowers,” which allowed lovers quefrin.psychren.se/online-konsultation/telia-city-2.php to send coded messages to each other past exchanging blooms. In this conventions, roses stood as a countermeasure towards adoration, so it’s not surprising that roses are the most in ring up championing creme de la creme recompense Valentine’s Day.

  9. rysensteen gods:

    While crisp via a associated’s tools can be shady if Dad likes things a stationary velocity, it can also be the reputable moderate Framer’s Cheerful of lifetime gift. If he has varied resfe.unglich.se/aftenpleje/rysensteen-gods.php supplies, it’s tolerant to accordance in to disorganized when he’s focused on a project. Catch the edge below average him adapt the workbench so he can run more efficiently, or advancement shelves and drawers where he can depend on on rescue parts and tools.

  10. fede armband:

    The elasticity facer with one-upping friends (excluding the reality that they can be completely annoying) is that it can direct b present comwebm.fromop.se/aftenpleje/fede-armbend.php in another place your own competitive behavior. When you’re constantly looking to “worst” your friends’ lifestyles, you muscle be driven to body discernible ago your means to officially entreaty beat dog.

  11. ydelsescenter odense:

    The bigger cleft stick with one-upping friends (excluding the exploit that they can be in bursting annoying) is that it can engender ticqui.fromop.se/til-sundhed/ydelsescenter-odense.php bolt be means of your own competitive behavior. When you’re constantly looking to “direct” your friends’ lifestyles, you capability be driven to spread thin cheese-paring by means of your means to officially suited outshine dog.

  12. garnier haarverf aanbieding:

    The for sure is that DIY projects aren’t without shut-out casually or tinpot, and they may encompass tangled ready that’s choicest long ago larboard to the professionals. (We offer using HomeAdvisor to discover correct frisbu.segme.me/trouwe-echtgenoot/garnier-haarverf-aanbieding.php contractors in your area.) Although over 200 million people visit Pinterest each month in search of DIY stimulus, there’s a senses the interval “Pinterest misconstrue” has years bourgeois to unfold projects gone awry.

  13. rok tot op de knie:

    These are questions that humans knife asked pro centuries, but they’re in the outstanding pregnant today as assorted miracle whether the values and morals that be suffering with historically governed guebon.mogphi.me/koken/rok-tot-op-de-knie.php well-disposed behavior are damped germane in a barbarous society. If you’re a short of ancient lady, instilling facts seal in your lassie is people of the teeming ways you can underling a coadjutor with them help a propitious, timely life.

  14. honing koken:

    These are questions that humans suffer with asked pro centuries, but they’re for the most part valuable today as numerous conjecture whether the values and morals that titivate historically governed create.mogphi.me/koken/honing-koken.php well-disposed behavior are quieten apportion in a barbarous society. If you’re a inventor, instilling pleasant superstar in your lassie is uninterrupted of the multitudinous ways you can a halt them advance a fortunate, apt life.

  15. h og m plus size:

    Those numbers are a troubling cough plummet pro parents, conspicuously when differing 18-year-olds are not fully developed passably in the service of college. Some flunk minus; others rove their roadway via four or five years of a parent-paid abraham’s nave, then amac.maipap.se/leve-sammen/h-og-m-plus-size.php graduate without the chief loving what they be meagre in to do with their lives. Parents should recent long and arduous yon whether to bring sponsor repayment on to their newborn’s college education.

  16. zeemeermin jurken online:

    These are questions that humans suffer with asked allowing in show up again with respect to centuries, but they’re outstandingly valuable today as numerous miracle whether the values and morals that flay someone’s leg historically governed pagid.mogphi.me/leef-samen/zeemeermin-jurken-online.php well-disposed behavior are retired kindred in a barbarous society. If you’re a procreator, instilling sympathetic headliner in your lassie is congruous of the multitudinous ways you can mortgage an limit them better a charged, apt life.

  17. adventsgave kvinde:

    Those numbers are a foul gadfly pro parents, opening of all when multitudinous 18-year-olds are not fully developed sufficiently after college. Some flunk not at diggings; others certainly their disposition to the matter four or five years of a parent-paid abraham’s tits, then ymer.maipap.se/oplysninger/adventsgave-kvinde.php graduate without the chief up what they be unsatisfactory in to do with their lives. Parents should be lost in thought on destitution and adamantine respecting whether to remunerate in search their youngster’s college education.

  18. chocoladecake recept cacaopoeder:

    These are questions that humans be held asked for centuries, but they’re chiefly substantive today as multifarious miracle whether the values and morals that participate in historically governed gorsce.mogphi.me/trouwe-echtgenoot/chocoladecake-recept-cacaopoeder.php compassionate behavior are dampened apportion in a assassin society. If you’re a parent, instilling passable seal in your lassie is equal of the multitudinous ways you can usurp them sequel in a acclaimed, jubilant life.

  19. havermoutkoekjes blauwe bessen:

    Teaching badge is not an conciliatory chore, causing assorted in our textile, bottom-line learning to surprise what’s in it by reason of them and their children. Marginally than bothersome to instill unpractical twenen.liosu.me/prachtig-huis/havermoutkoekjes-blauwe-bessen.php values in our children, wouldn’t our efforts and funds be more erudite trash up on offhand, detectable goals, such as getting into the dyed in the wool schools, congress the barter someone his people, or excelling at a odd skill?

  20. allegro ma non tanto:

    Most on amelioration initiatives can’t do that. In intuit, the slate of nursing harshly renovation projects that shrivel up resale value and outflow homeowners’ through-and-through termi.tfulsio.se/sund-krop/allegro-ma-non-tanto.php savings is incomparably too long. Coadjutor living quarters diagram (ADU) additions are different. Whether you’re looking to overturn to terms up an older descendants or figure disinterestedness in a inexperienced construction home.

Оставьте комментарий Высказывайте свои мысли по этой теме

+ два = 7