1144 comments found.
Pre purchase questions. 1. Is the script easily customle? 2. Can I easily add additional form fields to the registration form?. 3. Can I add a function to be performed (make payment) before the submit button appears?
Hey,
1. Sure, you get the source code and, if you are familiar with PHP and JavaScript, you can customize it however you want.
2. Depends what you mean when you say “easily” but yeah, you’ll need to edit the form HTML to add new fields, then update the JavaScript file to read the value from those fields and send it to the backend and then update the backend to actually handle those fields and write them to the database.
3. Yes but you’ll need to implement that from scratch since something like that doesn’t exist at the moment.
Regards,
Milos
can this script protect multiple websites running on the shared hosting same server?
Hey,
If you are using it on the same domain (different subdomains) then yes, it can, but you will have to slightly customize it by yourself since it cannot do that out of the box.
Kind regards,
Milos
Author cold you please share code to paste in an already existing system i want to protect pages. the code you shred is giving error 500 to websites
THIS METHOD NOT WORKING AND THE SCRITP IS INSTALLED ON THE SAME SERVER WHERE THE WEBSITE IS RUNNING. AUTHOR COULD YOU PROVIDE SOLTUION
I already have PHP website running I want to protect but this code isn’t working its giving error 500 on my website
<?php
include ‘ASEngine/AS.php’;
if (! app(‘login’)->isLoggedIn()) { redirect(“login.php”); }
Protect Your Pages If you already have some PHP pages that you want to protect, or you are using AS as a base and adding new pages to it, you will probably want to protect those files and allow access to authenticated users only. To do so, just add the following code snippet at the very top of your PHP file and you are good to go:
<?php
include ‘ASEngine/AS.php’;
if (! app(‘login’)->isLoggedIn()) { redirect(“login.php”); } The code above will just check if user is logged in, and redirect him to login.php if he is not logged in.
If you want to redirect users to any other page (instead of login.php), just update the redirect function and pass the page (or external URL) you want.
Note! Make sure that you place the code snippet from above at the very top of your php file. There shouldn’t be any HTML (not even a empty space) before it since that will prevent PHP session to start properly.
Hey,
The code you are trying to use is exactly what you should use. If you are getting the 500 error, you are either doing something wrong or your server doesn’t meet the requirements.
Either way, just 500 error doesn’t provide much info on what exactly is happening. Please check the following article on how you can enable the debug mode so you can see the errors on the screen, and let me know what exact errors do you get: https://milos.support-hub.io/articles/advanced-security-developer-guide
Btw, I always reply within 24 hours. Please be patient since posting multiple comments and sending emails won’t speed up the response. If that doesn’t work for you, feel free to request a refund and I’ll be glad to approve it.
Kind regards,
Milos
WHAT REQUIREMENTS am using shared hosting from namecheap
You can check the requirements here on CodeCanyon inside the item’s description or on https://milos.support-hub.io/articles/advanced-security-installaton#server-requirements
If you server meets those requirements, then you are probably doing something wrong which is why I need more info about the error you are getting so I can help you to solve it.
Kind regards,
Milos
I have sent you login details to the cPanel so that you can assist to debug and check PHP
Dear author could you please install the script for me and and set the following requirements PHP >= 5.3.0 PDO PHP Extension PDO MySQL Extension
because there are different script running on the server PHP 7.4 if possible could you please set PHP 5.3.0 for your script alone so that other scripts wont be affected. When I was installing the script marked all the fields green with green check marks
Hey,
I’m really sorry but I don’t provide the installation services. Everything is covered inside the documentation and if your server doesn’t meet the requirements or it has some other conflicting scripts, that’s something that you’ll need to resolve on your own. I can help only if something is wrong with the script itself.
As I said, please let me know what exact error you are getting (enable the debug mode for this as I explained above) and I’ll point you on what needs to be done for the app to work properly on your server.
Kind regards,
Milos
Dear author there is nothing really wrong with my servers and all have meet the requirements. Kindly Am initiating a refund. Yes but you failed to help i checked debugging I didn’t find anything. when I insert the code you provided am having error 500 on my website PHP website. webpage cannot be displayed
Refund request appoved.
Hi, I have 2 pre sales quiestions. 1) Does this script works with Windows IIS PHP Mysql Server? 2) Does this script supports users registration by default on disable status, until the Administrator manualy change status to enable users?
Hey,
1) Yes, as long as your server meets the requirements available here https://milos.support-hub.io/articles/advanced-security-installaton#server-requirements then the script will work without any issues. It doesn’t matter if it’s a windows or linux server.
2) Unfortunately that’s not the case out of the box. When a user creates an account, he will need to confirm his email address before he can log in, but it doesn’t wait for an admin to manually change the status of the user. This can easily be customized though if you are familiar with PHP.
Kind regards,
Milos
Thanks for the information, sounds great. Last question. Its easy to separte in two different files like login.php and register.php because in our case it would be in two different moments.
Thanks I bought the Script and I think its easy in PHP to separate login.php and register.php in two different modal forms.
Hey,
Thanks for purchasing. Yes, it should be pretty easy to separate those into two different pages/files.
Regards,
Milos
HI Author, Google Login is not working “400: redirect_uri_mismatch” some issue in redirect url, Even I checked in your document still not I can’t solve.
So please check your code.
Hi,
From what I see it’s working on the demo website, so you probably haven’t configured it properly in your installation.
Btw, your support for this item has expired. If you have any questions or need support, please extend the support and open a ticket on https://milos.support-hub.io
Regards,
Milos
Hello, how can I extend session timeout, for example 3 hours, by default login expires about after 25 minute.
Hey,
You can customize the session cookie TTL as it’s explained in the docs: https://milos.support-hub.io/articles/working-with-session#session-lifetime
If you still have issues with the session expiration, please check the conversation on the following ticket: https://milos.support-hub.io/tickets/28833
Regards,
Milos
Tried both, not working, I don’t use social auth. Pls can you give me an email for fast supporting. Thanks
Also I am using version 2.3
Hey,
Can you please submit a ticket on https://milos.support-hub.io and provide some temporary FTP/SSH credentials that I can use to see what can be an issue? Also, please provide a bit more details on what have you tried to do exactly that didn’t work.
Regards,
Milos
For how long does it block a user after x failed login attempts and where can i change the time? cant create a support ticket due to the 6 months… maybe i get an answer here. THX
When I used the CDN service (cloudflare), I encountered the problem of being unable to log in. I used the correct account and password. After I clicked to log in, the page was refreshed, and I continued to enter the account and password. How can I solve this problem?
Hey,
Can you please send me a link to the AS installation with CDN enabled so I can check?
Regards,
Milos
An email has been sent to you, please check.
The problem has been solved. Great product, awesome support!
Hey there, been using the script for quite a while now and still loving it! Quick question, is it possible to use the statements and everything without authenticating? What I am trying to do is run a script via CRON and I want to pretty much use an existing script, but without the actual logging in part, is this possible?
Hey,
Of course, you can call any AS classes manually, without having to go through the login process.
Not sure what you want to do exactly but, for example, you can create a user from a cron job like this:
1. Create some PHP file to be triggered by cron job. You can use any name you want, but let’s use example.php for our example. Make sure that this file is not accessible from the browser and that it can only be triggered via cron job.
2. Put the following code in example.php file:
<?php
require_once 'AS.php'; // make sure that your path to AS.php file is correct
app('user')->add([
'email' => 'john.doe@example.com',
'username' => 'john.doe',
'password' => '123123',
'password_confirmation' => '123123',
'first_name' => 'John', // optional
'last_name' => 'Doe', // optional
'phone' => '1234567', // optional
'address' => 'Some street 123' // optional
]);
And that’s it, when you trigger this file via CRON job, it will create a new user.
Btw, for any future questions, please submit a ticket on https://milos.support-hub.io since it’s much easier for me to track all the tickets and reply on time.
Kind regards, Milos
That is great, thanks heaps Milos!
Hello, I want to ues paypal ipn to send to a buyer a name and a passord. I don’t achive to write in the database the password hashed like you :$2a$13$T6lNDMzS4eQJrWToqyO8xxxx How to transform the password sended in this format? Is it possible? best reagrds
Hey,
Yes, you just need to pass the value through the bcrypt function before you store it into the DB.
Btw, your support for this item has expired. Please extend the support and create a ticket on https://milos.support-hub.io if you have any additional questions.
Regards,
Milos
Hello Milos,
Thanks for your reply..I will renew the support or rebuy a licence tomorrow:
I tried but it doen’t work
I don’t obtain the same passord!!
for example the password encrypte for ‘demo123’ gave me on the original db
$2a$13$WBPtrF01o4KOnvnkucKwkOqT.HQtYU5jZWhUlPGhu1LPFHmyjHjty
and now with the same
define(‘PASSWORD_SALT’, “WBPtrF01o4KOnvnkucKwkS”);
it give :
$2a$13$WBPtrF01o4KOnvnkucKwkOQlLX26D5Ipoj05DdjLBWEA5MioYvgC6
So it doen’t work
Besr regards
Dup
whether your script works. I tried the demo to test and it doesn’t work?
Hey,
From what I’ve checked everything is working as expected. What issues do you have?
Regards,
Milos
Please add remember me option in upcoming version.
Hello,
I need help as my ASUser class seems to not be initializing.
Logging in is working but using
$currentUser = app('current_user'); is giving my Trying to get property 'first_name' of non-object innotice
And
var_dump($currentUser)gives a NULL.
Regards
Hey,
This can be either because you forgot to include the AS.php file at the top of the PHP file where you are trying to use the app('current_user') or if you have changed how the current user instance is connected to the container.
I’d recommend you to verify that it’s working on the unchanged version of AS and, then check all the changes you have made to the script, one by one, to figure out where the issue is.
Kind regards,
Milos
I am using Amazon SES email service for my website with PHP 5.6. How do I configure the system to work with SES?
Hey,
If you want to use Amazon you can either use it to send emails via SMTP like it is explained within the following StackOverflow article https://stackoverflow.com/a/25671082/2530079 or you can customize the ASEngine/ASMailer.php class to use AWS SES API to send emails.
Btw, your support for this item has expired. If you have any future questions, please extend your support and submit a ticket on https://milos.support-hub.io
Kind regards,
Milos
WHYY NOT WORKING DEMO?? PLISS FIX IT IS SIMPLE TO FIX !!
Hey,
Can you please check it again? It works for me but if you have IP version 6 then that might be the reason why it’s not working for you.
Regards,
Milos
Hello.This doesn’t seem to be working. I install it and login and it;’s fine but when I logout and try to login again it just hangs there.
Getting errors in js/app/common.js in console
Tried to submit a support ticket but got a 404 error when trying to confirm my email
Hey,
Can you please send me the URL to your AS installation so I can check it and see what exactly is the issue?
About the 404 error when trying to confirm your email, can you please just let me know what your email is so I can check? Instead of posting it here publicly I’d recommend you to send it to me via the contact form available on my https://codecanyon.net/user/loshmis profile page.
Regards,
Milos
Could you explain how I could add additional user_details fields. For example: Date of Birth. I cannot work out how to save that to the database. I have created the necessary column in the DB.
Hey,
Can you please create a ticket on https://milos.support-hub.io and I’ll get back to you as soon as possible.
Kind regards,
Milos
Is it possible to redirect a user after the login to a another page than index.php? Admin after login to index.php User after login to notindex.php
Thank you
Hey,
Of course! Please check the following documentation article: https://milos.support-hub.io/articles/advanced-security-configuration#login-configuration
Kind regards,
Milos
Please Help with session, some users get out and they have to login again, Please help with that i change in ASSESSION what i can do with this problem??
Hey,
Please create a ticket on https://milos.support-hub.io and we’ll get it resolved. Also, please describe what exactly is happening and what you have exactly.
Regards,
Milos
pre purchase question…can i secure html pages? also can the pages be secured based on individual user account, for example can page1.html only be viewable by user1 and page2.html only viewable by user2 ect.?
also can i make it so say user1 logs in on login page then automatically gets directed to page1.html and same for user2 when user2 logs in they get directed to page2.html?
Hey,
Assuming that you have PHP installed on your server, you’ll need to change the extension for those files to php and then add the necessary php code to prevent unauthorised access as it is explained inside the docs: https://milos.support-hub.io/articles/advanced-security-protect-your-pages
As for allowing page1 to only be viewable to user1 you’ll need to either write a custom logic for that or to utilise different user roles.
Regards,
Milos
Can you post details on how to create a new form and have it handled using AJAX and submitted to a database
Hey,
The whole procedure is pretty simple if you are familiar with PHP and JavaScript. In short, you need to do the following:
1. Write a form HTML in a new file or in one of the existing files. For example, the HTML for the login form is in login.php file.
2. Write the javascript file that will submit that form to the server. For login form, the logic is in “assets/js/app/login.js” file. Note the “action” parameter that is being sent to the server, since that’s the value that you will use in the next step to handle that request.
3. Update the ASEngine/ASAjax.php file and add new “case” into the switch statement by using the same value that you have provided in the “action” field from above. You can handle the whole logic of the request here or you can make a new class or use an existing class for it. For example, for login purposes there is the ASEngine/ASLogin class that the app is using.
Btw, your support for this item has expired. Please extend the support if you have any other questions.
Kind regards,
Milos