Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7906289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:52:39+00:00 2026-06-03T10:52:39+00:00

i want to create magento login through soap client so how we can implement

  • 0

i want to create magento login through soap client so how we can implement in magento,
I create one file in magento root folder from this file i ahve to give functionality of soap login when this file is called, i don’t want magento login functionality for this particular file

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T10:52:40+00:00Added an answer on June 3, 2026 at 10:52 am

    I would like to thank the guys at @inchoo for this. locked-out-from-magento-admin

    This also can be run separate of Magento, just needs the app/Mage.php path to exist.

    <?php
    /*
     * Create New Admin User
     * @author    Ivan Weiler, Inchoo <web@inchoo.net>
     */
    
    //define USERNAME, EMAIL and PASSWORD and uncomment(#) this 3 lines
    #define('USERNAME','inchoo');
    #define('EMAIL','xyz@inchoo.net');
    #define('PASSWORD','inchoo555');
    
    
    if(!defined('USERNAME') || !defined('EMAIL') || !defined('PASSWORD')){
        echo 'Edit this file and define USERNAME, EMAIL and PASSWORD.';
        exit;
    }
    
    //load Magento
    $mageFilename = 'app/Mage.php';
    if (!file_exists($mageFilename)) {
        echo $mageFilename." was not found";
        exit;
    }
    require_once $mageFilename;
    Mage::app();
    
    try {
        //create new user
        $user = Mage::getModel('admin/user')
            ->setData(array(
                'username'  => USERNAME,
                'firstname' => 'John',
                'lastname'  => 'Doe',
                'email'     => EMAIL,
                'password'  => PASSWORD,
                'is_active' => 1
            ))->save();
    
    } catch (Exception $e) {
        echo $e->getMessage();
        exit;
    }
    
    try {
        //create new role
        $role = Mage::getModel("admin/roles")
                ->setName('Inchoo')
                ->setRoleType('G')
                ->save();
    
        //give "all" privileges to role
        Mage::getModel("admin/rules")
                ->setRoleId($role->getId())
                ->setResources(array("all"))
                ->saveRel();
    
    } catch (Mage_Core_Exception $e) {
        echo $e->getMessage();
        exit;
    } catch (Exception $e) {
        echo 'Error while saving role.';
        exit;
    }
    
    try {
        //assign user to role
        $user->setRoleIds(array($role->getId()))
            ->setRoleUserId($user->getUserId())
            ->saveRelations();
    
    } catch (Exception $e) {
        echo $e->getMessage();
        exit;
    }
    
    echo 'Admin User sucessfully created!<br /><br /><b>THIS FILE WILL NOW TRY TO DELETE ITSELF, BUT PLEASE CHECK TO BE SURE!</b>';
    @unlink(__FILE__);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created one module in Magento. I create Api.php in that. Now I want
Using Magento i want to create website where user can upload their products to
I am currently dabbling in Magento and I want know how I can create
I want to create a file in the current directory (where the executable is
I want to create conditional comments in XSLT. But when I use this: <!--
hello i create a cube and want on one side an texture. glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D,
I am trying to replace a rather clumpsy ajax-login of Magento from an external
I want to create a array of all sku's of simple products in magento.
I want to hide some of the categories from magento home page. I have
Magento has this very nice MVC system where modules can register their 'frontname' and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.