Skip to content

Commit

Permalink
Certificates - perms and model
Browse files Browse the repository at this point in the history
Move certificates to the new permissions system
Deduplicate add/edit using a model
  • Loading branch information
wrongecho committed Oct 2, 2024
1 parent 4e9afd3 commit 4a62518
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions post/user/certificate_model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
$name = sanitizeInput($_POST['name']);
$description = sanitizeInput($_POST['description']);
$domain = sanitizeInput($_POST['domain']);
$issued_by = sanitizeInput($_POST['issued_by']);
$expire = sanitizeInput($_POST['expire']);
$public_key = sanitizeInput($_POST['public_key']);
$notes = sanitizeInput($_POST['notes']);
$domain_id = intval($_POST['domain_id']);
$client_id = intval($_POST['client_id']);

0 comments on commit 4a62518

Please sign in to comment.