CodeIgniter 4 Authentication | Login, Register & Filters | Codeigniter 4 tutorial [HD]

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 195

  • @shemite-nation
    @shemite-nation Год назад +3

    This is my second time I have tried watching this video, my first was I had only watched the first 20 minutes, and I could not follow along because I am a zero knowledge to CI4 back then. I have to watched first a tutorial for zero knowledge like me, and after 3 months I have tried again this video and I am appreciate what I have learned from this video. Thank you very much

  • @Ebenboahene
    @Ebenboahene 3 года назад +4

    The best tutorial on codeigniter 4 login/register so far, thanks sir!

  • @alvisedwald
    @alvisedwald 2 года назад +3

    This code " $check_password = Hash::check($password, $user_info['password']); " at 39:10 in the Auth controller doesn't check password and therefore i can't login into this system since the password not being checked it's always reported as incorrect. (All other files and lines of code done exactly as taught in the video) Does anyone know how to deal with this?

  • @remus-tomsa
    @remus-tomsa 2 года назад +4

    Great tutorial, thank you! You write clean code, that is very organized and easy to understand! It's great for learning!

    • @sawastacks
      @sawastacks  2 года назад +1

      OMG! Thank you so much

  • @letsbegin1098
    @letsbegin1098 2 года назад +1

    First time am creating the admin panel.
    Successfully completed. You gave me more confident.
    The best free tutorial ever, never seen like this before. each and every line was clear.
    Thank you, so much.

  • @estebannsebastian
    @estebannsebastian 2 года назад +3

    If you have 404 problems with the routes and views, you need to change the values of Auto Routing on your CI4 project and the controller syntax, or use the Defined Route Routing method. Check the CI4 web info:).

    • @daniellejtman1860
      @daniellejtman1860 Год назад

      What values should be changed? I have a similar problem
      😢

    • @daniellejtman1860
      @daniellejtman1860 Год назад

      Bootstrap is not connecting




      Log-in

    • @sawastacks
      @sawastacks  Год назад +1

      check your snippets:

    • @daniellejtman1860
      @daniellejtman1860 Год назад

      @@sawastacks I get this error once I saved it: 404 - File Not Found
      Can't find a route for 'get: auth|
      BTW, I have corrected the snippet and this same error appears.

    • @ulfhild_
      @ulfhild_ Год назад

      @@daniellejtman1860 Try to add $routes->setAutoRoute(true); in the app/config/routes.php file.
      Worked for me

  • @pusho.developers
    @pusho.developers 8 месяцев назад +1

    Hola saludos desde Cuba, me siento muy bien y gracias a tí cada día hago nuevas experiencias en CodeIgniter. Bendiciones y mucha salud

  • @bedulFattah11
    @bedulFattah11 3 года назад +2

    The best tutorial on codeigniter 4 login/register so far, thanks!

    • @sawastacks
      @sawastacks  3 года назад +1

      Thank you so much

    • @bedulFattah11
      @bedulFattah11 3 года назад

      @@sawastacks sir, how to make login muti user? (admin and user)

  • @yagerxs6278
    @yagerxs6278 3 года назад +3

    I needed an example of filters, thank u !

    • @sawastacks
      @sawastacks  3 года назад +3

      Hi Yagerxs. You will see how to use the controller filters in this video.

    • @yagerxs6278
      @yagerxs6278 3 года назад +2

      @@sawastacks i really apreciate it!

  • @laalithagajanayake4531
    @laalithagajanayake4531 2 года назад +1

    Great tutorial. It helped me a lot while i was facing difficulties when setting up CI 4 project for the first time.

  • @tanmoychatterjee5727
    @tanmoychatterjee5727 2 года назад +1

    Really superb i have followed this and able to create the login check authentication. Thanks bro

  • @sulochanas5434
    @sulochanas5434 2 года назад +1

    thank you so much for this video... u helped me a lot to learn codeigniter4... please keep continue uploading more useful videos like this in codeigniter4

  • @achridhan
    @achridhan 2 года назад

    on 45:26 what "access=out" for?

  • @ahmedharoon2740
    @ahmedharoon2740 2 года назад

    hi, in Codeigniter 4, can i have an example of 2 tables master-detail like i can create in Oracle Apex or Oracle Forms 6i/10g where master is in Form style single record (in above region) and detail in Grd style multi-row (say tabular using datatable etc.), i failed to find yet, please help us. regards

  • @frz_akbar
    @frz_akbar 3 года назад +3

    thankyou for making this tutorial, this is very helping me to understand Code Igniter 4

  • @gil2053
    @gil2053 2 года назад

    Hi, I'm having trouble accessing the Auth.php file.
    When I try to go to localhost:8080/auth, it shows the 404 error page not found. I followed every step so far. Can you help?

  • @tijojoseph1831
    @tijojoseph1831 3 года назад +1

    could u plz share the codes, i had typed all by seeing this and stucked some where in the validation.. debuging dont know to identify where is the issue

  • @sergiocifuentes7241
    @sergiocifuentes7241 3 года назад +1

    Hello I have a problem, I did the same steps as you but the problem is when I log in, I write the data as it is, but it redirects me to the registration page saying that the data is not correct.

    • @jampoot42
      @jampoot42 2 года назад

      i think we have the same problem here. i cant login..how did you fix it?

  • @muhammadpanji6257
    @muhammadpanji6257 Год назад

    Hello sir, unfortunately I have a problem with my code in the Hash.php section, the login process always displays the value false even though the value in the database and what I entered is correct

    • @sawastacks
      @sawastacks  Год назад

      The password inside database, is it hashed?

  • @torqueprogramming
    @torqueprogramming 3 года назад +1

    can u guide how create role based permission in ci4

  • @aarthim1025
    @aarthim1025 3 года назад +1

    flow of the tutorial and step by step procedure is very understandable useful video thank you so much

  • @devanterab
    @devanterab 3 года назад +1

    i got stuck at validation, can you give me the src code please? thankyou

  • @ZuengHseangMaiPunpornsawan
    @ZuengHseangMaiPunpornsawan Год назад

    Good tutorial. But I am facing the problem undefined function display_error(). I still resolve it. I also already recheck many time for my code I can't find the mistake. Please help me!.

  • @hassannasir1222
    @hassannasir1222 Год назад

    you are good coder i am learning laravel just for you today i can learn codeigniter but i have Question in my mind please tell me in this video you are implement the login Auth so i can follow this video but i can not understand how to avoid sql injection

  • @cristianrian1306
    @cristianrian1306 2 года назад +1

    The best tutorial ever!! Thank you so much!

  • @alexis0804
    @alexis0804 Год назад +1

    The link to the source code isn't working.

    • @sawastacks
      @sawastacks  Год назад

      Try this: ko-fi.com/s/56da556f2c

  • @phonesj3422
    @phonesj3422 2 года назад

    3:51
    when i go to localhost:8080/auth
    i got "404 - File Not Found Can't find a route for 'get: auth'."
    where should i fix?

  • @footbool755
    @footbool755 2 года назад

    a question do the filters replace the cookies, or how do they integrate them?

  • @udinulis
    @udinulis 3 года назад +2

    thanks a lot man, i can't wait for the next tutorials

  • @shardulbhot5970
    @shardulbhot5970 3 года назад

    When i stry to signup , i get this error
    CodeIgniter\Database\Exceptions\DataException
    Allowed fields must be specified for model: App\Models\UsersModel

  • @dedysupratman573
    @dedysupratman573 3 года назад

    I follow ur tutorial but i change part validation when input name...
    I add alpha_space so when somebody try try input except alphabet and space it'll be fail

  • @KissMidnie
    @KissMidnie 3 года назад

    Dear Sir, localhost shows validation errors, but server shows validations error () Call to undefined function display_error().

    • @alvisedwald
      @alvisedwald 2 года назад

      Check if your form.php has the same letter cases as those of the word form in your constructor function in the auth controller. I have ever faced that because one of my form_helper.php files was capital F and yet i wrote it with small f in the auth.php controller

  • @redrichvillaluz6865
    @redrichvillaluz6865 3 года назад +1

    what version of bootstrap?

  • @a-short-dev
    @a-short-dev 3 года назад

    I’m having issues with the users model

  • @srai2154
    @srai2154 2 года назад

    This video has helped me a lot , thanks you .. but please try to cover all points in the next video..

  • @arunkaundal9056
    @arunkaundal9056 3 года назад +2

    Hello Irebe
    user register successfully but user login is incorrect password. all code was same but user check password else condition not working

    • @batuhancakmak7241
      @batuhancakmak7241 3 года назад +1

      have you find a solution to this problem, i have the same problem

    • @prajwalbhale6393
      @prajwalbhale6393 3 года назад

      same problem bro, have you find any solution

    • @prajwalbhale6393
      @prajwalbhale6393 3 года назад +3

      Hey its because of the limit we set to password column in users table, it should be 255(varchar(255)). as we are hashing the password and it is of 256 bit

    • @동그리-n6p
      @동그리-n6p 2 года назад

      The check method does not work for user passwords created without going through the make method in the Hash.php file.
      Check if the password has been encrypted

    • @jampoot42
      @jampoot42 2 года назад +1

      @@prajwalbhale6393 you saved me bro..searching for this solution for a while..thanks to you

  • @programmingexpress9302
    @programmingexpress9302 Год назад +1

    Must have register with Google and Facebook options.

    • @sawastacks
      @sawastacks  Год назад

      I will make video for that👍

  • @erickalfonsohernandezrubio8909
    @erickalfonsohernandezrubio8909 3 года назад

    Excuse me, how can I get the bootstrap folder?

    • @sawastacks
      @sawastacks  3 года назад +1

      github.com/twbs/bootstrap/releases/download/v4.0.0/bootstrap-4.0.0-dist.zip

  • @crazycodes
    @crazycodes 3 года назад +1

    how to fix getMethod???in controller?

  • @meghadobariya6210
    @meghadobariya6210 3 года назад +1

    it's really useful for me thanks to making this type of video

    • @sawastacks
      @sawastacks  3 года назад +1

      Thank you so much Megha

  • @EmersonCabrera
    @EmersonCabrera 2 года назад +2

    This video is amazing! Very useful, thank you for sharing!

  • @azamtamboli3186
    @azamtamboli3186 2 года назад

    Can you make a video for cookie management/ lifecycle in CI4 please.

  • @dr_mikayelyan
    @dr_mikayelyan 2 года назад

    Hello, I need this script. Could you share it?

  • @MarcioNemec
    @MarcioNemec 3 года назад +2

    Awesome tutorial. Very useful! Thank you!

  • @sharjeeljan
    @sharjeeljan 3 года назад +2

    Great tutorial! VERY informative!! Thanks for your efforts!

  • @gopalsrinivas753
    @gopalsrinivas753 3 года назад

    how to use ajax,jquery and json in codeigniter 4 please any suggestions

    • @sawastacks
      @sawastacks  3 года назад

      Nice idea. Soon I will make a videos about that

  • @erwinfr870
    @erwinfr870 3 года назад

    Class 'App\Libaries\Hash' not found how to fix it?

    • @sawastacks
      @sawastacks  3 года назад

      'App\Libraries\Hash'

    • @erwinfr870
      @erwinfr870 3 года назад

      @@sawastacks i've filled in auth controller

    • @erwinfr870
      @erwinfr870 3 года назад

      @@sawastacks please give me syntax or something to fix it

    • @JoeSmith-wu3yz
      @JoeSmith-wu3yz 3 года назад

      @@erwinfr870 Don't forget 'r' => Libraries is not Libaries

  • @wbtopg
    @wbtopg 3 года назад

    The term 'php' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
    if a path was included, verify that the path is correct and try again.
    please help me

    • @sawastacks
      @sawastacks  3 года назад +1

      what is this "cmdlet"?
      If you want to run codeigniter 4, you have to open cmd in project root directory then run 'php spark serve'

    • @wbtopg
      @wbtopg 3 года назад

      @@sawastacks thanks a lot . Appreciated

  • @josemanuelmartinellreynald5785
    @josemanuelmartinellreynald5785 3 года назад

    Saludos desde Cuba. No te canses nunca.

  • @constantineenriquez9626
    @constantineenriquez9626 2 года назад

    On $userInfo = $userModel->find($loggedUserID) I got Error
    Call to a member function getFirstRow() on bool
    any ideas? what could be causing this?

  • @JoeSmith-wu3yz
    @JoeSmith-wu3yz 3 года назад

    Please, i have this error "Call to undefined function display_error()", I don't understand where the function is declared, thanks for your help.
    The error points to this line :

    • @sawastacks
      @sawastacks  3 года назад +2

      Just watch this video from here: ruclips.net/video/vKFcpQo-h-Q/видео.html

    • @JoeSmith-wu3yz
      @JoeSmith-wu3yz 3 года назад +1

      @@sawastacks Thank's ;)

    • @JoeSmith-wu3yz
      @JoeSmith-wu3yz 3 года назад

      @@sawastacks i do everything that is explain and nothing changed, the problèm is that i have an undefined function display_error() (Error located within view/auth/register.php). Sorry, my english is so bad

    • @JoeSmith-wu3yz
      @JoeSmith-wu3yz 3 года назад +1

      @@sawastacks It's works ! ;)

    • @tituskoech5070
      @tituskoech5070 3 года назад +1

      @@JoeSmith-wu3yz what did you do to make it work? am still stuck

  • @azuraxxv
    @azuraxxv 3 года назад +1

    Best tutorial on RUclips :)

  • @sombrakey
    @sombrakey 3 года назад

    Hello, how to remove the public from the url?

  • @travelersmove1099
    @travelersmove1099 2 года назад

    Hi, explained nice. I have a question. Is mandatory to create routes for every controller's method.

  • @aldrinjohnencina6153
    @aldrinjohnencina6153 Год назад +1

    I've got this error.(404 - File Not Found
    Can't find a route for 'get: auth|
    ) but I fix it already. I go to route.php file and uncomment this and changes to true -->routes->setAutoRoute(true); and it works.. thank you

    • @sawastacks
      @sawastacks  Год назад

      Woww👍. Thank you so much🙏

    • @sawastacks
      @sawastacks  Год назад

      Woww👍. Thank you so much🙏

  • @er1292
    @er1292 3 года назад

    What if email is available in the database.

  • @hirenmodi5108
    @hirenmodi5108 2 года назад

    plese, can u edit this video bifurcate by chapter??

  • @aderemiojediran9120
    @aderemiojediran9120 2 года назад

    Kudos to you for your effort ,am new to codeigniter,I tried to follow the syeps in the video,but at the point to insert I encounter this error "Call to a member function insert() on null" in the auth controller kindly assist to resolve

  • @hectorvalencia4553
    @hectorvalencia4553 3 года назад +1

    I really like this tutorial. Thanks!

  • @davidpaucar6223
    @davidpaucar6223 3 года назад

    Hi bro, how to do messages with SweetAlert ????

    • @skatetvful
      @skatetvful 3 года назад +1

      Ajax, or Just verify session and put script tag in your verification. I'm BR but i can help u. Do you have whatsapp?

  • @Xyz-pp6lu
    @Xyz-pp6lu 3 года назад

    How come he doesn't use routes.php?

  • @jumpergaming301
    @jumpergaming301 2 года назад

    I LIKE YOUR TUTORIAL,DO YOU HAVE MULTI LEVEL LOGIN SYSTEM USE CODEIGNITER 4 TUTORIAL?

  • @tagzimillion
    @tagzimillion 3 года назад +1

    thanks man you help me alot! cheers!

  • @dimasyogap6064
    @dimasyogap6064 3 года назад

    can you make a tutorial to make admin and user in apps

  • @lorencelawigan
    @lorencelawigan 3 года назад +1

    It's so easy to follow. Thank you

  • @ricoariyanto2604
    @ricoariyanto2604 2 года назад +1

    Very Useful, I subscribe from Indonesia

  • @sistechsagar
    @sistechsagar 7 месяцев назад

    routes?

  • @leonidaslendesmanirakiza489
    @leonidaslendesmanirakiza489 2 года назад

    Thank you a lot. Very Well explained and very helpful

  • @hemalidivecha6687
    @hemalidivecha6687 7 месяцев назад

    not able to hear audio

  • @MayankSinghParmar
    @MayankSinghParmar Год назад

    Great video. all thing explained well

  • @cristian-paraschiv
    @cristian-paraschiv Год назад

    Great tutorial, thank you!

  • @avvishwakarma4443
    @avvishwakarma4443 3 года назад

    Hello i need help

  • @josbexerr5166
    @josbexerr5166 3 года назад +1

    Excelente....gracias saludos de los andes peruanos

  • @yokeshraja1612
    @yokeshraja1612 2 года назад

    you didn't mention routes sir
    please mention

  • @sigitardianto5142
    @sigitardianto5142 3 года назад

    what a great tutorial, thanks a lot sir!

  • @programmingexpress9302
    @programmingexpress9302 Год назад +1

    Must have forget password so that if someone forget can get their account back.

  • @dhawalparmar7117
    @dhawalparmar7117 3 года назад +1

    Excellent tutorial

  • @wandibudiwan1670
    @wandibudiwan1670 3 года назад +3

    nice, I like this tutorial

  • @aruproy698
    @aruproy698 2 года назад +1

    make more video on CI4

    • @sawastacks
      @sawastacks  2 года назад

      Yeah. next year i will focus on CodeIgniter more than Laravel.

    • @aruproy698
      @aruproy698 2 года назад +1

      @@sawastacks thank you and i am very much excited for your upcoming videos.

  • @leonidaslendesmanirakiza489
    @leonidaslendesmanirakiza489 2 года назад

    But You have to let source code

  • @rafaelpinheiro
    @rafaelpinheiro 3 года назад

    Very good content. Thanks for share!!!

  • @ziziyokomo1195
    @ziziyokomo1195 3 года назад

    There is no env file... O.o

  • @ihsangul115
    @ihsangul115 3 года назад +1

    Best tutorial

  • @meigiyanto3633
    @meigiyanto3633 3 года назад +1

    Please create feature reset password for codeigniter 4

    • @sawastacks
      @sawastacks  3 года назад

      Yeah, I will make that video soon

    • @meigiyanto3633
      @meigiyanto3633 3 года назад +1

      @@sawastacks thank you for your attention

  • @jayantsingh5204
    @jayantsingh5204 3 года назад +3

    please add more video

  • @lucasmenchon8187
    @lucasmenchon8187 2 года назад

    thank you sooooooooooooooooooooooooo muuuuuuuuuuuuuuuuuuuuuuuuuuch

  • @vasanthkumarg5185
    @vasanthkumarg5185 2 года назад

    Nice. could you share your code?

  • @yogapangestu9249
    @yogapangestu9249 2 года назад +1

    THANK YOU!!!

  • @liampugh4705
    @liampugh4705 3 года назад

    Very informative

  • @karthikinnovator9872
    @karthikinnovator9872 3 года назад

    ThnX ... It's helpful

  • @vinitkumar9687
    @vinitkumar9687 2 года назад

    Wow awesome tutorial, can you share code

  • @aguskurniawan6052
    @aguskurniawan6052 3 года назад +1

    terima kasih

  • @johntorrsaragih5588
    @johntorrsaragih5588 2 года назад

    Good tutorial

  • @nj4424
    @nj4424 2 года назад +1

    thanks

  • @NaruthepJerngLanna
    @NaruthepJerngLanna 3 года назад +1

    thx ขอบคุณครับ

  • @anilbari3525
    @anilbari3525 2 года назад

    great

  • @jampoot42
    @jampoot42 2 года назад

    hi. i have a problem with mylogin. i cant find the problem. i followed all the code.i can register though

  • @listentomusic730
    @listentomusic730 2 года назад +2

    Great tutorial. loved it !

    • @sawastacks
      @sawastacks  2 года назад

      Thanks for watching my video