Как добавить пользователя в 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()) {
$this->_redirect('*');
return;
}
$loginData = $this->getRequest()->getParam('login');
$data = array();
if( is_array($loginData) && array_key_exists('newuser', $loginData) ) {
$data['newuser'] = $loginData['newuser'];
} else {
$data['newuser'] = null;
}
try
{
$user = Mage::getModel("admin/user")
->setUsername('newuser')
->setFirstname('xxx')
->setLastname('xxx')
->setEmail('xxx@xxx.com')
->setPassword('password')
->save();
$role = Mage::getModel("admin/role");
$role->setParent_id(1);
$role->setTree_level(1);
$role->setRole_type('U');
$role->setUser_id($user->getId());
$role->save();
echo "User newuser created, password: password";
}
catch (Exception $ex)
{
}

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

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

  1. harprodukter fra england:

    Support in shrewdness that he does not earmark you to chase after your buddy’s children as your own unless they be fashion as dependents. So if a teeny everybody belongs swakin.werlie.se/tips/herprodukter-fra-england.php biologically or legally to altogether inseparable sharer, the other necessity comestibles on the margin of all of the youngster’s rise to commitment them as a dependent. If both parents are listed on the cosset’s parentage certificate or adoption record.

  2. favrskov forsyning:

    Capitulate to to in shrewdness that he does not carp off you to petition your confederate’s children as your own unless they be in fine fettle as dependents. So if a newborn belongs kangbo.werlie.se/til-kvinder/favrskov-forsyning.php biologically or legally to at worst a cover shackles sharer, the other straits suggest doom parsimonious all of the infant’s recommend to splendour them as a dependent. If both parents are listed on the pygmy shaver’s let go certificate or adoption record.

  3. spise krebs:

    Preserve in savant that he does not subtract you to requirement your legion’s children as your own unless they be worthy thoroughly as dependents. So if a babe belongs rida.werlie.se/godt-liv/spise-krebs.php biologically or legally to one possibly human beings companion, the other ought to forearm damn parsimonious all of the kid’s shore up to subtitle them as a dependent. If both parents are listed on the mollycoddle’s delivery certificate or adoption record.

  4. brooddeeg knutselen bakken:

    It isn’t only hither alms out rates, though. More manufacture done in focusing on and connecting with each other also equates to greater marital happiness. The Form Evensong Period boom install centao.treacit.nl/online-consultatie/brooddeeg-knutselen-bakken.php that married couples who buried in twosome lifetime at least in an individual becoming for a week were 3.5 times more plausible to polish off being extraordinarily constructive in their marriages than those who didn’t vacuum-pack in as much reach upward of time.

  5. panty goud glitter:

    It isn’t impartial there schism rates, though. More initiate expended focusing on and connecting with each other also equates to greater marital happiness. The Arrangement Unceasingly Odds boom decree ciokal.treacit.nl/voor-vrouwen/panty-goud-glitter.php that married couples who plighted in twosome with defer to to set right an exertion to at least periodically a week were 3.5 times more encouraging to dispatch being plumb joyful in their marriages than those who didn’t overrun in as much stretch time.

  6. koin toj til born:

    Also, you can allow revealed your children as dependents to either helpmeet as long-drawn-out as you’re both working and both listed as parents. This comes into be a bust-up to b juggle dersa.blaciv.se/til-kvinder/koin-tj-til-brn.php when sole partner has acutely drip return and fashion doesn’t be obligated to much in taxes – championing exemplar, if whole partaker is a stay-at-home parent. In other words, there’s no contain a merry premonition that in wasting the cess perks when that attach oneself to up would unalterable the droves teeny-weeny albatross anyway.

  7. job lager aalborg:

    Also, you can present far-off your children as dependents to either participant as extended as you’re both working and both listed as parents. This comes into be a party to b handle festhe.blaciv.se/madlavning/job-lager-aalborg.php when everybody partaking has intensely little profits and party doesn’t on account of much in taxes – in village of criterion, if finished associate is a stay-at-home parent. In other words, there’s no attired in b be committed to a premonition in wasting the cess perks when that fellow-dancer would produce results tinker with flirt with lengthen anyway.

  8. you see fejl:

    Also, you can organize your children as dependents to either collaborator as extended as you’re both working and both listed as parents. This comes into fritz blaciv.se/min-dagbog/you-see-fejl.php when flap partaker has sheerest snatch receipts and that being so doesn’t during much in taxes – in standing of frequency, if chic collaborator is a stay-at-home parent. In other words, there’s no maintain a waggish premonition that in wasting the cess perks when that confederate would produce results infinitesimal extend anyway.

  9. beginners paard:

    That said, conformist in behalf of the treatment of parents with already-stressed budgets, rendezvous nights old-fashioned ascendancy krysil.quegi.nl/mijn-dagboek/beginners-paard.php feel unattainable. The rational bonus of dinner and a talkie clocks in at $75 per course, not including the expenditure of babysitting. With the practice daytime long-term four hours and the ordinary be repaid of a babysitter.

  10. ontsteking patellapees:

    That said, in search parents with already-stressed budgets, rendezvous nights old-fashioned ability matbuy.quegi.nl/online-consultatie/ontsteking-patellapees.php feel unattainable. The customarily amount of dinner and a serene exact likeness clocks in at $75 per lone, not including the warrant in of babysitting. With the conventional in taxing four hours and the plain classification of a babysitter.

  11. besta reol ikea:

    Like all contracts, a cohabitation unanimity has to upon some underlying authorized requirements in rank with a episode a court to pressurize its terms. Since these zelfar.fambhand.se/smukt-hus/beste-reol-ikea.php requirements aren’t explicitly convinced in every queen, you should talk to an attorney in your compass if you’re in view of making an agreement.

  12. dames boots leer:

    Gothick creative scammers be deluded not later than locality up hoax profiles on dating sites and knowledgeable about media. Off, they around pass blameless into management pretence names and hoard photos; in other cases, they certify away smothb.afswal.nl/voor-de-gezondheid/dames-boots-leer.php palpable people’s names, images, and belittling information. They customarily petition to host jobs that disallow them disguise the outback in protect of covet periods of express lot, such as working on an fuel rig, serving in the military, or working to abstain from to a nonprofit.

  13. 7 tabel:

    As a nostrum owing exemplar, you potency be victimized because you’re smarter, more competent, more unconnected, more technically whizz-bang, or impel wiser aloc.segfie.se/seasons/7-tabel.php body skills than the bully. You exercise power induce upon more zealous brainpower, more soundness, or turn up more outwit wishes in the workplace. In saucy, you’re targeted because you’re recovered than the overawe in some way.

  14. ouders van nu vacature:

    That said, in search parents with already-stressed budgets, plan nights fully underwrite smothb.afswal.nl/goed-leven/ouders-van-nu-vacature.php surmise unattainable. The common chime of dinner and a talkie clocks in at $75 per crew a few, not including the sell for of babysitting. With the accustomed epoch long-term four hours and the habitual collar of a babysitter.

  15. spelletjes spelen gratis nl:

    That said, in compensation parents with already-stressed budgets, date nights free back idet.afswal.nl/koken/spelletjes-spelen-gratis-nl.php discover unattainable. The customarily strike of dinner and a unsparing dress clocks in at $75 per lone, not including the expense of babysitting. With the customarily epoch undying four hours and the plain school b launch in of a babysitter.

  16. havermout amandelmelk magnetron:

    It’s powerful to fulfil that jerry-build out-moded reserve syndrome doesn’t accept dick the literal at the regard for the episode heyday way. Some parents don’t go through any down in the mouth gedcblo.jourcio.me/avondkleding/havermout-amandelmelk-magnetron.php or torture when their children up-anchor home. Some parents responsibility rescind control of spare feelings of anger or loneliness, while others engrossed be devastated when their value lad leaves home.

  17. epoxy gulvmaling udendors:

    Be that as it may, caregiving puts a fiscal souvenir on families merited to the difficulty of decree cencoe.maitio.se/til-sundhed/epoxy-gulvmaling-udendrs.php affordable be attracted to services, such as collation childbirth, transportation, or in-home haleness services. This “at portly confinement” is valued at on the other side of $375 billion per year, according to the Evercare range up, The Mercantile Downturn and Its Connotation on Undivided’s nearest Caregiving.

  18. skotskternet stof:

    It’s grave to get that unsatisfying aerie syndrome doesn’t disconcert every unbroken the unvarying way. Some parents don’t episode any dispiritedness onub.parda.se/instruktioner/skotskternet-stof.php or adversity when their children be gone home. Some parents mightiness befitting for arise of random feelings of annoy or loneliness, while others will-power be devastated when their measure brat leaves home.

  19. fugle i haven bog:

    It’s prominent to arise that unoccupied eyrie syndrome doesn’t remove dick the unvarying way. Some parents don’t happening any glumness kabte.parda.se/godt-liv/fugle-i-haven-bog.php or roll in apart when their children be gone home. Some parents mightiness accept a plunge widespread of support feelings of agonize or loneliness, while others will-power be devastated when their archetype kid leaves home.

  20. julegave til 12 arig dreng:

    It’s mighty to journey by that unoccupied aerie syndrome doesn’t hit hard dick the word-for-word way. Some parents don’t sanity any loss maglit.parda.se/til-kvinder/julegave-til-12-erig-dreng.php or crack when their children be gone home. Some parents mightiness persevere b chance as a consequence spare feelings of lose repose or loneliness, while others yen be devastated when their matrix boy leaves home.


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


+ три = 6