1144 comments found.
Hello, need your help in one thing.

I can’t create a new container. I want something similar to what you’re doing with the user roles.
So I added:
$container[‘name’] = $container->factory(function ($c) { return new ASNames($c[‘db’], $c[‘validator’]); });
Also in the AJAX.php file:
app(‘name’)->delete($_POST[‘nameId’]);
Also created the file ASNames.php
x
I get this error:
PHP Fatal error: Uncaught Error: Class ‘ASNames’ not found in /Users/User/Work/App/app_users/ASEngine/AS.php:71
Can’t understand this. Little help? (just read the documentation)
Thanks Artur
Hey Artur,
I’m sorry but your support for this item has expired. If you have some questions or you need some help, please extend your support and create a support ticket on https://milos.support-hub.io
Regards,
Milos
You are sorry. Ok, I’ll do that but I shouldn’t. It’s ridiculous you’re charging me $9+ to answer one question.
Also it looks like the documentation is incomplete. I followed everything on the “Dependency Injection Container” section and still can’t get this to work.
The Envato rules are simple and they are the same for all customers. If you don’t need my support then there is no reason why you should extend it.
Regards,
Milos
It is possible to use it in a local system
Hey,
I’m not sure that I understand the question. How exactly do you mean to use it “in a local system”?
Regards,
Milos
Hey is it possible to add in an update that allows me to pass a redirect location in the login page so that when they login they are redirected to where they wanted to be.
Context: I have a purchase page, and they are required to login and upon logging in they are currently redirected to a generic page, but I want to redirect to a parameterised page.
Hey,
Sure, it can be added, however you will need to modify the source code to achieve that.
If the destination page is something that you can generate on the backend then you can simply modify the respond function call at the bottom of userLogin method in ASEngine/ASLogin.php class. Basically, instead of using get_redirect_page() you can pass your own redirect page there.
Btw, for any future questions, please create a ticket on https://milos.support-hub.io
Kind regards,
Milos
Can a multi-user chat be integrated into this system? I would like in the next version
Hey,
Thank you for your comment. The chat can be integrated of course however I don’t have plans adding it to this application in the future.
Kind regards,
Milos
Hello, it happen the same with me, i install the script, but i cant never make it work, i register a new user, but no appears in database and not receive an email for confirmation, also i cant login…
Notice: Undefined index: action in …/ASEngine/ASAjax.php on line 5
now a logged in, but cant create new account from the front page, i need to create user only when i login as an admin
i trying to create a new user, i made this:
include ‘ASEngine/AS.php’; require(‘ASEngine/ASPasswordHasher.php’); $db = app(‘db’);
$email=”some@email.com”; $username=”someuser”; $password=”admin123”;
$ASPasswordHasher = new ASPasswordHasher(); $password= $ASPasswordHasher->hashPassword($password);
$key=””; $date=”2019-04-17”;
$db->insert(‘as_users’, array( “email” => $email, “username” => $username, “password” => $password, “confirmation_key” => $key, “register_date” => $date ));
echo “New: ”.$username.” / ”.$password;
BUT IS SO WEIRD IS NOT WORKING, BECAUSE THE PASSWORD I CREATE IS DIFFERNET FROM THE PASSWORD CREATED IF I USE THE FILE USERS
EXAMPLE FOR admin123>
MY HASH $2a$13$RrBC1noLlz82z5ciqrRwaeGnbqhc4CCYsAbxm.FAg2GX3M02zfHl6
YOUR HASH $2a$13$RrBC1noLlz82z5ciqrRwaeYzYnynwNj7U.1Rqc5bPhi2IKrwKEoeu
PLEASE HELP
Hey,
The password is always hashed with sha512 hashing algorithm before it is being sent from the browser to your server. This means that, if you are not using the forms for creating/registering a user that provided out of the box, you will need to also hash it with sha512 before you hash with ASPasswordHasher.
Anyways, your support for this item has expired. If you have any other questions please extend your support and create a ticket on https://milos.support-hub.io
Regards,
Milos
Hello Sir,
Pre-Buy question, I have an template with bootstrap 3.1, will i can to integrate on it?
Thanks. Regards.
I bought this script, but is not pure php, is with framework, functions are not explicable, i can’t do changes, becouse it’s apear only errors, i can change function becouse error..
Can you help me to combinate your login script to my html template, i will pay extra.
Thanks.
Hey,
AS script is completely pure PHP and it is not built on top of any framework. It uses a few packages but nothing more than that.
If you are familiar with PHP you should be able to change any functions/classes to make them fit your needs without any issues.
Unfortunately, customization is outside of the support I provide for this item and I’m currently not available for any custom work.
Kind regards,
Milos
Hi, I was just testing the demo. I have registered, but did not confirmed the e-mail link. Then I have logged as admin and can see my record as confirmed. Why is that? Could you check this?
Hey,
The only way it can happen is that somebody else, while logged in as admin, confirmed your account in the meantime.
Regards,
Milos
How can I confirm/undo confirm user when logged in as admin?
Hey,
As you can see from the demo, there is no way to manually confirm the user or undo the confirmation. The reason for this is because the “confirmation” is related to his email address and if a user is not able to confirm his email address then he most likely provided an invalid mail address during the registration.
Regards,
Milos
Hi,
I am very interested in your Laravel software Any question before buying.
1) How to add the registry / login system to a site already created? Should I create other pages? for this to work.
2) How to integrate on your software on our pages of our website already create?
Should we add our site in a folder of your software for it to work.
I do not know Laravel.
Thank you
Hey,
Well, honestly, if you are not familiar with Laravel, I would not recommend you to purchase Vanguard since it will be pretty hard for you to customize it and use it.
About your questions, you can find all the info in Vanguard’s documentation, especially in this article: https://milos.support-hub.io/articles/using-vanguard-for-existing-website
Kind regards,
Milos
Hi,
Install the software I do it, I talk about adding my pages to your software
Thank you
Milos: Congrats on all your hard work on this. It appears to be what I want, but I’d be grateful if you’ll just confirm. I have a website for my large family. I simply want to have people register so that I can collect their names and details for our family tree and for other family announcements. 1. Will I be able to create specific fields for the info I need? 2. Can the collected data be easily accessed in a database or some other way? Thank you!
Hey,
Yes, you can add any code and fields you want for any info you need. Basically you get the complete source code of the application that you can further customize for your use-case.
Of course, you need to be familiar with PHP, HTML and JavaScript to be able to customize the app to fit your needs.
Kind regards,
Milos
I’ve bought your script. Your installation instructions speak as though there is a visible folder that remains afterward the creation of a DB. You say, “just navigate to the AS folder on your server and installation wizard will be displayed immediately.” I’ve never been able to view the DB or navigate that easily to it. Please clarify so that I’m not left in limbo for days.
Replied to the ticket you have created on https://milos.support-hub.io
I love this script. I’m trying to do a redirect after deleting a record from db, any ideas?
Hey,
Not sure what record you are deleting exactly but, if you are using ajax as the other parts of the AS script, you can easily redirect users by doing window.location = "your_custom_page.php";.
Btw, for any further questions please create a ticket on https://milos.support-hub.io
Regards,
Milos
Thanks, I will do that.
Hi, excellent plug-in, really solid. Any chance you might add a Gmail login option? Thanks!
Hey,
There is a Google+ login for the script so I’m not sure what you are referring to exactly when you say “Gmail login”. But, anyways, I don’t have any plans on adding new social login options at the moment.
Regards,
Milos
The problem is that Google+ is being deprecated in March in favor of the Google Sign-in system, which is based simply on the Gmail/Google login. However, I just tried a fix and in the case of your software is as easy as simply replacing the current hybridauth version your software is shipping with, with version 2.13.0. I didn’t have to change a single thing in your code, the new library simply uses the Google Sign-in system leaving everything else the same. I suggest you give it a try 
What type of encryption does the user’s password have?
Hey,
You can set that inside the config file, but the default is bcrypt.
Regards,
Milos
How would it be to disable encryption?
I would not recommend you to do that since it will make your data unsecure… However, if you want, you can modify the ASRegister and ASLogin classes and remove the hashing of the password when user is registered/authenticated.
Regards,
Milos
Hey name is nick.
I noticed your string generator is not secure. Please refer to https://stackoverflow.com/questions/4356289/php-random-string-generator/31107425#31107425
I would require composer require paragonie/random_compat for random_int() polyfill.
This is highly recommended as you use this to generate passwords. If so the passwords it creates could be predictable.
Hey,
I don’t see that you have purchased the item so I’m not sure how you can refer to the latest version of the code…
Anyways, thank you for your concern but the only place where randomPassword() method from ASRegister class is being used is just when someone logs in via the social network, however, as you can see from the code, it is just being used as a basic random string generator which does not have to be cryptographically secure since it is being hashed with sha512 algorithm before it is hashed further as any other password.
This means that someone will have to guess the 128 characters long hash of the random string to log in, which is not an easy thing to do.
Milos
Hi,
There is “bot protection” in register form. How can I use “bot protection” in login form ?
Thanks
Hey,
There is no need for bot protection for the login form. It is required for the registration form to prevent bots from creating a ton of false accounts in your system.
For login form, there is a brute-force protection mechanism in place and there is no need for adding some kind of captcha or the bot protection that comes out of the box with the script.
Anyways, if you still insist on adding it for the login form then the only way to do it is to manually apply it the same way it is applied to the registration form.
Regards,
Milos
Hi, I have another question. Is there an easy way to redirect new users to a specific page right after their account has been created, instead of just displaying the “registration succesful” message on the login page?
Bonus question: Is there a way to login the user in with the registered user, then redirect? This would be a nice shortcut instead of requiring the user to manually login and move on to the website.
UPDATE: I’ve gotten the redirect part to work by adding a window.location.href change in register.js. But the auto-login part is out of my league.
Hey,
Please always create a ticket on https://milos.support-hub.io instead of posting a comment here. I don’t always check the comments section on a daily basis so sometimes you might wait even a few days for the response.
To log the user in automatically after the registration you will need to update the ASRegister::register method to look like the following:
//insert new user to database
$this->db->insert('as_users', '...');
$userId = $this->db->lastInsertId();
$this->db->insert('as_user_details', array(
'user_id' => $userId
));
//...
$this->login->byId($userId);
//prepare and output success message
respond(array(
"status" => "success",
"message" => $msg
));
Regards,
Milos
After installation, I get stuck on the page for creating a new user. I choose a username and password, but when I click the submit button, it gets stuck on “Creating account …”. The user is succesfully created in the DB, but the page doesn’t redirect anywhere.
I haven’t changed anything in the config file.
Chrome console gives me this error when I click the submit button:
Uncaught TypeError: Cannot read property ‘errors’ of undefined
at Object.AS.Util.showFormErrors (common.js:78)
at Object.$.ajax.error (common.js:123)
at u (jquery.min.js:2)
at Object.fireWith [as rejectWith] (jquery.min.js:2)
at k (jquery.min.js:2)
at XMLHttpRequest.<anonymous> (jquery.min.js:2)
Hey,
It looks like your server is not returning a properly formatted JSON response for some reason, most likely because there is some error on the backend caused by the server configuration.
Can you please create a ticket on https://milos.support-hub.io and provide the URL to your script installation so I can check it and see how it works?
Kind regards,
Milos
Is it possible to edit the css styles and integrate adminlte?
Hey,
When you purchase the code you get the whole source code of the application and you can modify it however you want. So yeah, if you have at least some basic knowledge of PHP, JavaScript, HTML and CSS you should be able to integrate it with AdminLTE.
Btw, for any future questions please create a ticket on https://milos.support-hub.io
Kind regards,
Milos
Hi, there. Is there any way to extend the time, for how long user is logged in without logging him out? It’s quite annoying now, that it does that so quickly.
Hey,
Of course. You can set up the session expiration as it is explained inside the docs: https://milos.support-hub.io/articles/working-with-session#session-lifetime
Btw, your support for this item has expired. For any further questions please extend the support and create a support ticket on https://milos.support-hub.io
Regards,
Milos
Oh yeah, I know. I just wanted to see if I can get this to work. The last time I failed and I am building new project, so I considered purchasing new license, but unfortunately I cannot use system, that ignores whatever I do regarding automatic logout. Thanks
HI there,
First off thank you for an awesome product – it has helped me tremendously!
I’m just having one little problem – whenever I add any fields to the database in phpmyadmin, my main user admin area where I edit users no longer functions. When I click user->edit or details the page loader just keeps spinning forever. In my case I uploaded profile pictures within the as_user_details table. Users that I haven’t applied the image to work fine for some reason. Any idea on how to fix this? This is fairly urgent so I’ll open a support ticket as well. Thanks.
Hey,
I’ve just answered to your ticket.
Kind regards,
Milos
Great script! Adding 2FA would make it brilliant. Kind regards, Rogier