classified's Introduction
classified's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.