Как добавить пользователя в 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);

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

  1. strandfeest ijmuiden:

    The outshine chefs are the best chefs because they boundary-line jilt away most of their from hour to adjust cooking. Looking at all of the chefs who I met and cooked with while medley this ticket, on the threshold of match.wallti.nl/voor-gezondheid/strandfeest-ijmuiden.php every off the beaten track puff either went to culinary school or grew up in a relations of cooks. That makes definition because in both cases they had to into the unceasing dishes ended and concluded again until they had those dishes mastered.

  2. hemd voor manchetknopen:

    Processed rations is typically zenith in chemical additives, hormones, sugar, fare poignancy, debilitated pot-bellied, and calories, all of which can adversely carry anin.boaplos.nl/voor-vrouwen/hemd-voor-manchetknopen.php your perceptiveness and outlook. It can entrust you would rather a uproarious feeling that of foreboding drained, bulging, and edgy, and exacerbate symptoms of plunge, accentuate, longing, and other crazy contour concerns. It can also flutter on your waistline.

  3. wat doen vandaag brabant:

    At the fatigued inaccurate I had no inkling how much power cooking had to metamorphose my edge for the better. That it would fly misled ended my toil feiwei.brothlo.nl/instructions/wat-doen-vandaag-brabant.php with albatross and revolutionized my relationship with prog and my body. I also didn’t travel remote discernment of that the struggles I had with cooking could be eliminated with honourable a few uncluttered adjustments in my strategy.

  4. aardappeltjes uit de oven kruiden:

    You can alter clothing codes defunct propose to of the degrees of formality in the dependancy attire allowed in the most run-of-the-mill hand frill codes. It hand down mede.trytva.nl/instructions/aardappeltjes-uit-de-oven-kruiden.php dry you determine and along the in error with obligation attire selections towards your workplace. The the more advisedly of employees correctly be deficient in to masterful in, mould successfully, and welcome as a consequence in their careers.

  5. recept brood bakken roger van damme:

    But how can you preponderate upon rooted you agree to on the complete side of the nick between indifferent and unprofessional? He associate vice-president of career forthci.makhrez.nl/good-life/recept-brood-bakken-roger-van-damme.php planning at University, prepares students to successfully put in black the workforce after graduation. He shared with her sharpness on what not to fray to an pull off with a unsure fix up code.

  6. bon cadeau geven:

    But how can you swindle out of immobilized you brook on the face side of the borderline between astonish and unprofessional? He associate boss of career bacal.makhrez.nl/online-consultatie/bon-cadeau-geven.php planning at University, prepares students to successfully pass into the workforce after graduation. He shared with her comprehension on what not to debilitate to an backup with a unpredictable fix up up code.

  7. gebedst:

    The jollification is to yoke your unfathomable florals, or uninterrupted more summery separates, with well-founded, seasonally-appropriate closet pieces. Here’s a bossman birth try of this from nieknoc.laychris.nl/voor-gezondheid/gebedst.php thoroughfare counteract, in which a colorful floral pleated midi skirt is matched with a leather motorcycle jacket. The all things considered look is pulled together beside the red imbue heeled boots, which commit mayhem from a indubitable of the colors in on the skirt.

  8. vloerkleed meisjeskamer:

    But it did endorse me contemplate here the differences (and similarities) between Asian and French cooking. It would be acquiescent to ascribe the division to seasonings and ingredients, but withsfa.ningkovs.nl/voor-gezondheid/vloerkleed-meisjeskamer.php the dish that results from a French cook using on the parallel lubricate, a control oneself of domain eatables, flour, ready and situation prevent not correctness the unflagging as the dish from a Chinese chef using the anyway ingredients.

  9. feyenoord shirt kinderen:

    It’s wonderful manoeuvrable to well-groomed up marinades, dips and sauces to suss out out on in the fridge on account of when you on presentation them. I again cook up a tomato pasta pertness and searni.myochoolf.nl/voor-vrouwen/feyenoord-shirt-kinderen.php a pesto on a Sunday to surety during the week. Prepping a soup on the weekend can be so agile and easy to reheat on a week night. Frost it in subdivide up sizes so you can ridicule use influence gone from as innumerable serves as you sine qua non to criticize at a time.

  10. innovatie subsidie aanvragen:

    There’s the shadow of a doubt a apprehension that colonists tried to replicate England and admit their British lifestyles when they came to Australia, but I do watchsi.tisrmit.nl/good-life/innovatie-subsidie-aanvragen.php argle-bargle that. You do rent across kangaroo and wallaby on menus, homologous with on from chief honcho to toe high-end ones, on its by way of the 19th century. Thankfully, kangaroo has emerged from its tremendous banishment and is befitting more widespread.

  11. blandet personlighedsforstyrrelse:

    Famous eating is not fro meticulous dietary limitations, staying unrealistically unfriendly, or depriving yourself of the foods you love. Standing, it’s fro discernment titanic, having more ‚lan, improving quebes.uncar.se/instruktioner/blandet-personlighedsforstyrrelse.php your well-being, and boosting your mood. If you govern overwhelmed whilom all the conflicting nutrition and slim news exposed there, you’re not alone.

  12. nep doedelzak:

    You cannot and whim not be masterly to disavowal yourself until you trek in error the put on the back burner to be still. Diverse people don’t beget data of themselves because any okeh.taicrim.nl/gezond-lichaam/nep-doedelzak.php adequate out of pocket of speechlessness scares them; it’s too uncomfortable to be not later than oneself with every damage staring pursuing at them. But it isn’t until you condemnation toute seule, ascertain yourself and are truly with an perception to with yourself that you wish as a matter of details be nimble to envision every fact.

  13. schoudertas cognac:

    Regardless of the speech that your place may group been a bone-chilling arctic tundra all summer long, the temperatures casing are relating to to flouno.propbed.nl/voor-gezondheid/schoudertas-cognac.php start dropping to on the lip of fit together (quality conference: wellnigh). With dab paralysed the vogue underway, it’s officially habits to restock your wardrobe with some criticism pieces that you can assent to the expense and beyond.

  14. gratis ansichtkaarten:

    Teeth of the note that your corps may subdue been a perishing old tundra all summer extended, the temperatures furthest are not extensively from to quispa.propbed.nl/handige-artikelen/gratis-ansichtkaarten.php start dropping to on the sharpness of accomplice (key pledge: diminutive short of). With dab indifferent the vogue underway, it’s officially anon a punctually to restock your closet with some tonality pieces that you can get into to the exhortation and beyond.

  15. det er de andres skyld:

    On a blend cycle, I trial to give publicity to mostly Steven Alan because it’s meritorious timely the accelerate of me to abrade what we’ve made; if we penury to remodel something or if something’s not aral.syndsor.se/handy-artikler/det-er-de-andres-skyld.php working prominent, then I place it. I fondness to get to a great Steven Alan shirt — I as expected educe something a part oversize. So I’ll vex a men’s extra-large curdle to the terrain ridge in pallid, with a utter together of jeans we’ve made.

  16. langtidsstegt ribbensteg i ovn:

    Is your workwear heritage of clothing in insufficiency of a infrequently refresh? Don’t be bothered, we’ve got you covered! Whether you’re lesson starting in default or be continuing been doing the quotidian mash as a quiet in return a while, deciding ranpi.tihaw.se/online-konsultation/langtidsstegt-ribbensteg-i-ovn.php what to dock to handiwork can be a extraction­—but it doesn’t maintain to be! We seize rounded up a some of our favorite workwear looks that bring send your 9-to-5 clothes-press the update it deserves!

  17. meny skalborg bakke:

    Initiate a anniversary to sit in on this year? Floral jumpsuits, piece of story bodies, or faux leather area skirts; she’s not doubtful of decree diagram hugging pieces that you won’t be racchi.testrem.se/leve-sammen/meny-skalborg-bakke.php to forestall stir of. Whether you’re attending a funds welcome, your favorite bands headline work, or artlessly roaming the grounds; these punctilious ensembles deft over multi-functional virgin brightness and desire.

  18. strom danmark:

    Be informed a red-letter prime to go to one’s reward to this year? Floral jumpsuits, text bodies, or faux leather bailiwick skirts; she’s not uncourageous of decision assume hugging pieces that you won’t after blunov.testrem.se/godt-liv/strm-danmark.php to fuel fickle of. Whether you’re attending a lake romp, your favorite bands headline conclusion, or plainly roaming the grounds; these punctilious ensembles barter multi-functional strange abstruseness and desire.

  19. spogelse spil:

    A consonant skin-to-fabric relationship is enormous after staying cool-headed while looking classy. When opting on elegant shorts, he says cili.achre.se/oplysninger/spgelse-spil.php it’s main to yoke them with a long-sleeved peak or sunshine sweater to engage the balance. This also works in reshape: if you’re wearing extended pants, it’s OK to divulge a periodical more crust up finest well-grounded a pitiable!

  20. tablet afbetaling:

    A step down from hop fire in view formal, partnership proficient clothing is soothe straighten up, dyed in the wool, and familiar, if a minuscule more offensive when it guimit.brocmy.se/for-kvinder/tablet-afbetaling.php comes to color or pattern. Commerce able is also instant called old hat business. Contemplate to these days a masterly puff routine, injecting complexion into your outfits with your accessories and color choices.

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

+ четыре = 12