Commit 45ce79a6 authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Fix bitrot. Add a type field in the generated credential.

parent 20f3039c
......@@ -109,6 +109,7 @@ sub Create($$$) {
$self->{'extensions'} = undef;
$self->{'uuid'} = GeniUtil::NewUUID();
$self->{'idx'} = undef; # Only set when stored to DB.
$self->{'type'} = "privilege";
bless($self, "GeniCredential");
$self->SetExpiration(time() + ($expires * 60 * 60 * 24));
......
Supports Markdown
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