Giter Site home page Giter Site logo

classified's Introduction

classified's People

Contributors

fco avatar

Watchers

 avatar  avatar  avatar

classified's Issues

Initial issue

I have no better title for this ticket, please fix if any better ones.

So there are these particular issues with this app:

1)User session model has to be

model UserSession is table<logged_user> does Cro::HTTP::Auth {
    has UInt $.id is serial;
    has Str  $.sessionid is column{ :unique } is rw;
    has UInt $.uid  is referencing{ User.id } is column{ :nullable } is rw;
}

For login post route here is a diff:

-                    $session.user = $user;
-                    $session.^save;
+                    $session.uid = $user.id;

As for Session::Red module, here is a working gist - https://gist.github.com/Altai-man/546d99c3cbe4dfcd15b4ee9efa1f9ac4 with explanations added.

I was able to make it keep a session, but I am unable to update it: the next issue to look into here is that with those changes I have:

Cannot resolve caller AUTOGEN(User:D: ); none of these signatures match:
    (Mu:U: *%_)
  in block  at /home/koto/Devel/classified/lib/Routes.pm6 (Routes) line 49
  in block  at /home/koto/Work/cro/cro-http/lib/Cro/HTTP/Router.pm6 (Cro::HTTP::Router) line 130

for $session.uid = $user.id in login post route, which I don't have an idea how to fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.