Commit f04d3404 authored by owlo's avatar owlo

stats, yo

parent 6e9fa793
No preview for this file type
......@@ -7,7 +7,62 @@ type EndpointsS struct {
sharedInbox []OrderedCollectionS
}
type MobileS struct {
Str int
Dex int
Int int
Wis int
Con int
Tec int
Summary string
LastBork string
Source map[string]interface{}
Type string
Following string
Followers string
Liked string
Inbox string
Outbox string
Url string
Attachment AttachmentS
AttributedTo AttributedToS
Audience AudienceS
Content string
Id string
Context interface{}
Name NameS
EndTime EndTimeS
Generator GeneratorS
Icon []string
InReplyTo InReplyToS
Location LocationS
//There is no use for this right now
Preview string
//
Published string
Replies RepliesS
StartTime string
Tag TagS
Updated string
To string
Bto string
Cc string
Bcc string
MediaType string
Duration string
Position celPosS
Streams CollectionS
PreferredUsername string
Endpoints EndpointsS
}
type ActorS struct {
Str int
Dex int
Int int
Wis int
Con int
Tec int
Password string
Summary string
LastBork string
......
......@@ -47,6 +47,9 @@ func validateLogin(signature string, file []byte, actors []libs.ActorS) bool {
for i := range actors {
if florptext[0] == actors[i].PreferredUsername {
if florptext[1] == actors[i].Password {
//Uncomment the line to clone the user at login
//createUser(florptext[0], florptext[1])
fmt.Println("LOGGED THE HECK IN")
return true
}
......@@ -79,6 +82,12 @@ func createUser(username string, password string) bool {
for i := 0; i < 32; i++ {
fmt.Println("")
}
userActor.Str = 15
userActor.Dex = 15
userActor.Int = 15
userActor.Wis = 15
userActor.Con = 15
userActor.Tec = 1
userActor.Inbox = hostname + "#inbox/" + username
userActor.Outbox = hostname + "#outbox/" + username
userActor.Following = hostname + "#following/" + username
......@@ -591,7 +600,6 @@ func main() {
if ok {
w.Header().Set("Authorization", "ok")
w.WriteHeader(http.StatusOK)
w.Write([]byte("bop"))
} else {
w.Header().Set("Authorization", "not authorized")
......@@ -630,6 +638,10 @@ func main() {
}
})
//CREATE USER
//END CREATE USER
// mux.HandleFunc("/.well-known/webfinger?resource=acct:guarddoggo@example.com", func(w http.ResponseWriter, req *http.Request) {
// Before any call to WriteHeader or Write, declare
// the trailers you will set during the HTTP
......
This diff is collapsed.
This diff is collapsed.
{"Password":"bork","Summary":"","LastBork":"","Source":null,"Type":"","Following":"http://snowcrash.network#following/guarddoggo","Followers":"http://snowcrash.network#followers/guarddoggo","Liked":"","Inbox":"http://snowcrash.network#inbox/guarddoggo","Outbox":"http://snowcrash.network#outbox/guarddoggo","Url":"","Attachment":{"TypeS":"","Content":"","Url":""},"AttributedTo":{"TypeS":"","Name":""},"Audience":{"TypeS":"","Name":""},"Content":"","Id":"","Context":null,"Name":{"Context":"","TypeS":"","Name":""},"EndTime":{"Context":"","TypeS":"","Name":"","StartTime":"","EndTime":""},"Generator":{"TypeS":"","Name":""},"Icon":null,"InReplyTo":{"Summary":"","TypeS":"","Content":""},"Location":{"Name":"","TypeS":"","Place":""},"Preview":"","Published":"","Replies":{"TypeS":"","TotalItems":0,"Items":null},"StartTime":"","Tag":{"TypeS":"","Id":"","Name":""},"Updated":"","To":"","Bto":"","Cc":"","Bcc":"","MediaType":"","Duration":"","Position":{"Y":null,"X":null},"Streams":{"Location":"","Obj":{"Attachment":{"TypeS":"","Content":"","Url":""},"AttributedTo":{"TypeS":"","Name":""},"Audience":{"TypeS":"","Name":""},"Content":{"Content":"","Summary":"","TypeS":"","MediaType":""},"Context":{"Context":"","Summary":"","TypeS":"","Items":null},"Name":{"Context":"","TypeS":"","Name":""},"EndTime":{"Context":"","TypeS":"","Name":"","StartTime":"","EndTime":""},"Generator":{"TypeS":"","Name":""},"Icon":{"TypeS":"","Name":"","Url":"","Width":0,"Height":0},"InReplyTo":{"Summary":"","TypeS":"","Content":""},"Location":{"Name":"","TypeS":"","Place":""},"Preview":"","Published":"","Replies":{"TypeS":"","TotalItems":0,"Items":null},"StartTime":"","Summary":"","Tag":{"TypeS":"","Id":"","Name":""},"Updated":"","Url":"","To":"","Bto":"","Cc":"","Bcc":"","MediaType":"","Duration":"","Position":{"Y":null,"X":null}},"TotalItems":0,"Current":null,"First":"","Last":"","Items":null},"PreferredUsername":"guarddoggo","Endpoints":{}}
\ No newline at end of file
{"Str":15,"Dex":15,"Int":15,"Wis":15,"Con":15,"Tec":1,"Password":"bork","Summary":"","LastBork":"","Source":null,"Type":"","Following":"http://snowcrash.network#following/guarddoggo","Followers":"http://snowcrash.network#followers/guarddoggo","Liked":"","Inbox":"http://snowcrash.network#inbox/guarddoggo","Outbox":"http://snowcrash.network#outbox/guarddoggo","Url":"","Attachment":{"TypeS":"","Content":"","Url":""},"AttributedTo":{"TypeS":"","Name":""},"Audience":{"TypeS":"","Name":""},"Content":"","Id":"","Context":null,"Name":{"Context":"","TypeS":"","Name":""},"EndTime":{"Context":"","TypeS":"","Name":"","StartTime":"","EndTime":""},"Generator":{"TypeS":"","Name":""},"Icon":null,"InReplyTo":{"Summary":"","TypeS":"","Content":""},"Location":{"Name":"","TypeS":"","Place":""},"Preview":"","Published":"","Replies":{"TypeS":"","TotalItems":0,"Items":null},"StartTime":"","Tag":{"TypeS":"","Id":"","Name":""},"Updated":"","To":"","Bto":"","Cc":"","Bcc":"","MediaType":"","Duration":"","Position":{"Y":null,"X":null},"Streams":{"Location":"","Obj":{"Attachment":{"TypeS":"","Content":"","Url":""},"AttributedTo":{"TypeS":"","Name":""},"Audience":{"TypeS":"","Name":""},"Content":{"Content":"","Summary":"","TypeS":"","MediaType":""},"Context":{"Context":"","Summary":"","TypeS":"","Items":null},"Name":{"Context":"","TypeS":"","Name":""},"EndTime":{"Context":"","TypeS":"","Name":"","StartTime":"","EndTime":""},"Generator":{"TypeS":"","Name":""},"Icon":{"TypeS":"","Name":"","Url":"","Width":0,"Height":0},"InReplyTo":{"Summary":"","TypeS":"","Content":""},"Location":{"Name":"","TypeS":"","Place":""},"Preview":"","Published":"","Replies":{"TypeS":"","TotalItems":0,"Items":null},"StartTime":"","Summary":"","Tag":{"TypeS":"","Id":"","Name":""},"Updated":"","Url":"","To":"","Bto":"","Cc":"","Bcc":"","MediaType":"","Duration":"","Position":{"Y":null,"X":null}},"TotalItems":0,"Current":null,"First":"","Last":"","Items":null},"PreferredUsername":"guarddoggo","Endpoints":{}}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment