Front end signup in yii2 with using module - module

Can anyone help me how to do user sign-up and login from frontend step by step using module in yii-advanced. I am new in yii.

Check the coding of these files. Login and registration are already done in advanced app, check user.php and LoginForm.php in common/models and siteController in frontend/controllers.

Related

How can I add users in ApostropheCMS?

I'm using ApostropheCMS. I want to add users authentication to my project. How can I do this? The users should be created in the same way I created admin user? (via /login page and apostrophe-users module).
I want to create a custom form for both login and registration. Then I want to check if the user is log in and if so, I want an user profile for them.
There's a module you can install to add a signup form: https://github.com/apostrophecms/apostrophe-signup

How to password protect one page the vue way?

I am building a website with nuxtjs and was wondering if I could password protect only one webpage with vuejs and not vanilla javascript.
Is this possible? if so! how?
The goal is to show the webpage to only those that i granted the password to, but the rest of the website is public to all, I am not really looking for a user authentication system, just a password protected one page!
Why not make an ajax call to a server ? a simple php function would return true or false if the password you had defined is correct.

Redirect Keycloak to Custom Forgot Password

Hi I am using Keycloak for authentication. I have one separate service for forgot password. I want to redirect keycloak to that service when Forgot Password Link is clicked.
I dont want to use keycloak's forgot password service.
Please Help.
Keycloak's login page is built using Freemarker templates. These are stored in Themes folder inside Keycloak. You can edit these FLT files inside Keycloak's theme folder and make any changes you want - like adding a link to another URL/resource/etc.
The base login theme can be found here -
/standalone/configuration/themes/base/login/login.ftl
Themes can be deployed in multiple ways - as a folder/module/jar. They need to be dropped under -
standalone/configuration/themes
Under keycloak-9.0.3/themes/base/login/ you can find standard templates which names and content you can use for customization. E.g. login-reset-password.ftl.
Then it's recommended better to create a custom theme and under it copy/create your custom template.
At the end don't forget to change the "Login Theme" to your custom one on Keycloak Admin Panel under "Realm Settings" -> "Theme".

How to call yii user login in restfullyii?

I'm using yii user and rights for creating rbac in yii. i also uses restfullyii for Restfull services.
Now i need to merge the yii user and restfullyii, so that when i submit username and password in the client side(frontend), i should pass it through restfullyii to yii user and checks for the login credentials and return the appropriate message to the client.
When i tried the url with the Chrome Advanced Rest Client Application extension, i get the following error.
<h2>Error 404</h2>
<div class="error">
Unable to resolve the request "user/REST.POST".</div></div><!-- content -->
How to merge yii user and restfullyii extensions.
Your routes are wrong that's why you are not able to resolv any page.
check on configuration main.php your restfull yii routes first.
then try to get into the app using domain.me/index.php/api/

Joomla PHPmaker authentication

I have already created my webpage with PHPmaker. An now I have install Joomla for my Homepage. Now My client has two username and password to login with this PHPmaker and Joomla created webpage.
I want to creat a plugin for joomla as when my user login to the joomla it automatically login the PHHmaker webpage too. So that my client can login the two website with a single login page.
Please guide me.
Note :- Joomla authentication for PHPmaker webpage.
In case you REALLY want to do it this way, you can get details on how to build the remote Joomla login portion here -
Logging In To Joomla 1.5 Using External Form (not within joomla folder, but on same server)
You will need to pass login credentials to PHPMaker via script and this will create session which you can use in Joomla too or else if you have used UserTrack settings then your user session data will get stored in user table into Usertrack field you could validate your user details and use Usertrack field and use that.
Kindly let me know whether that worked for you.