An open API service indexing awesome lists of open source software.

https://github.com/statickidz/magento-external-auth

Simple functions to authenticate in Magento outside your code
https://github.com/statickidz/magento-external-auth

Last synced: 4 months ago
JSON representation

Simple functions to authenticate in Magento outside your code

Awesome Lists containing this project

README

          

# Magento External Authentication
Simple functions to authenticate in Magento outside your code (not your server)

## Usage
```php
//Try to login
if(MagentoAuth::loginCustomer('username', 'password123')) {
print 'Logged in!
';
if(MagentoAuth::isLoggedIn()) {
print 'Still logged in!
';
}

//Get logged customer
$customer = MagentoAuth::getLoggedCustomer();
print $customer->getEmail().'
';
} else {
print 'Login Failed
';
}

MagentoAuth::logoutCustomer();
```