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.

Hi, do you plan to add ARGON2I for password?

Hey,

I don’t have such plans for now, but you can easily customize it if that’s what you need.

Regards,

Milos

before purchase , i have some questions : 1、what does this php code use for ? i am not coder , so i don’t understand this what this script can do . ( i have see admin panel for many times . sorry to say this .) 2、need code skills to understand this item ?

Hey,

Yes, you need code skills to understand and customize the script so, if you are not a developer, then AS is probably not a good choice for you.

Regards, Milos

My question is how can I protect a php page by user role.

Hey,

You can do it like this:

<?php

include 'ASEngine/AS.php';

if (! app('login')->isLoggedIn()) {
    redirect("login.php");
}

if (app('current_user')->role == "User") {
    // This will prevent access for users with a role "User" to access this page
    // and redirect them to some other page. Users with different roles won't be redirected
    redirect("some_page.php");
}

Btw, for any questions or bug reports, please create a ticket on https://milos.support-hub.io

Regards, Milos

And what id I have more than one user role. How do I prevent other user roles?

Hey,

This really has nothing to do with AS itself, it’s entirely PHP related. In PHP, if you want to check if one item belongs to a list/array of items, you can do it like this:

if (in_array("foo", ["foo", "bar", "bazz"])) {
    // the item is in the array, do something
} else {
    // the item is not in the array, do something else
}

If you are not familiar with PHP then AS is probably not the script for you.

Milos

Hello Milos,

I upgrade my server to PHP8.0 and PHP8.1, but now the script show me many deprecate and error issues, do you have planned to update this fantastic script?,

best regards!

Hey,

Of course, I have it ready with just a few outstanding things to test. The plan is to release it tomorrow if everything goes well.

Regards,

Milos

Nice!!, I will be waiting for it.

Unfortunately, I had some issues with social auth, so I’ll have to delay the release for tomorrow. Thanks for the understanding!

Hey,

I’ve just checked it and appears to be working fine. What issues do you have?

Milos

Hi – regarding the update to php 8+ PLS make a list of the changed files so we can avoid overriding all files because i edited some of them. Would be great. THX

Hi Author,

I want to buy your script. Do you offer a free installation and integration?

Thank you!

Hey,

Sorry for a bit late response, I was out of the office for the last couple of days.

Unfortunately no, you will have to install and integrate the script into your project. Of course, you have to be familiar with PHP and JavaScript to be able to do something like this.

Regards,

Milos

I’m trying to install in php 8.1.6. It dont pass. Do I have to downgrade php?

Hey,

Yes, you’ll need to downgrade the PHP. I plan to release the update in this week to support PHP 8, but for now it’s not yet officially supported.

Regards,

Milos

hi dear loshMiS

I use AS from 2016 with grand thanks as respect for you.

can you upgrade this script to php 8 and mysql 8?

This could be a new update after a long time

regards

Hey,

Thanks for your comment. Yes, I plan to release a new update soon.

Milos

I left a ticket on https://milos.support-hub.io/. I haven’t heard a response yet. My problem is that I’m trying to install your script, but it only gets as far as installation. It doesn’t pass that.

Hey,

I usually reply to all the tickets in 24 hours, so when you create a ticket on https://milos.support-hub.io there is no need to post a comment here since it won’t speed things up. :)

Thanks,

Milos

The confirmation email is a good feature, but the system doesn’t resend the confirmation email and the user does not have the possibility to reuse a valid email without admin action. So, a resend button (like forgot pass) is needed.

Hey,

Thanks for the request. Will consider adding something like this in the future.

Regards,

Milos

Is PHP8 supported?

Hey,

The app is not fully tested on PHP8 yet, so, unfortunately, I cannot confirm that it will work properly. My plan is to release a new version soo which will drop support for PHP 5.x and fully support PHP 8.x, but not ETA yet unfortunately.

Regards,

Milos

Hello,

Can we add the name, surname, phone and address fields on the profile page to the registration form? I want to get this information on the registration page.

Hey,

Of course. When you download the app you get the whole source code, which means that if you are familiar with PHP, JavaScript and MySQL you can customize it however you want.

If you have some other questions about the script feel free to create a ticket on https://milos.support-hub.io

Kind regards, Milos

Hello I have a pre purchase question, I have a php Ajax MySQL configuration where I want to restrict each user to only their own data so they can update and in some cases view only their organisation data (with other data public), then submit information about only their own organisation via forms using Ajax and Jquery. Will this enable those user permissions on an organisational basis. Each organisation identified in the current database as an organisation ID field.

Hey,

You can achieve something like this with AS by customizing it to work as you need it, but if you already have the users system in place as well as organizations, then you can probably just code it manually.

Regards,

Milos

Does this script support Postgres database?

Hey,

The app is not fully tested using Postgres so I cannot guarantee that everything will work as expected, although under the hood it is using PHP’s PDO driver which supports Postgres out of the box, so it should work properly.

Regards,

Milos

I have installen in a subdirectory. Then, I tent to login from the root folder and get message “Invalid CSRF token”.

Hey,

Please check the following documentation article on CSRF tokens and why you need to provide one in the request: https://milos.support-hub.io/articles/csrf-protection-and-forms

Regards,

Milos

My support has ended, but a quick question. I can’t seem to find it, so I thought I would ask. What happens when a user forgets their username?

Great script, thanks!

Hey,

In that case he will need to manually contact the administrator so he can reset his username.

Regards,

Milos

Hi! I think I’ve detected a bug in the social login. In mobile, when a user clicks in login with Facebook, he is redirected to FB login page.

If user enter it’s mobile phone number instead of the Email, the register of the user is done without email, but the problem is that if another user make the login with mobile phone number again the application thinks is the first user!

It mixes the data between the first and second user!

Can you please check it?

It’s causing some trouble in my website

Thanks

Hey,

Thanks for reporting this. Will check it and get back to you.

Btw, for the future, please create a ticket on https://milos.support-hub.io instead of posting a comment here since that’s the preferred way of contacting the support for the fastest response.

Regards,

Milos

Hi, is it possible that an user have more than one user role?

Hey,

Unfortunately no, user can have only one role at the time.

Regards,

Milos

Hi I like your work, is possible after registration redirect to a web page…Thanks

Hey,

Of course, if you are familiar with JavaScript and PHP you can easily customize the redirect.

Btw, I see that your support for this item has expired. If you have any further questions please extend the support and submit a ticket on https://milos.support-hub.io

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