Code

Discussion on Advanced Security - PHP Register/Login System

Discussion on Advanced Security - PHP Register/Login System

Cart 2,756 sales

niftycode supports this item

Supported

This author's response time can be up to 1 business day.

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,

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?

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.

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 in 
notice

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

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey