summaryrefslogtreecommitdiff
path: root/FS/FS/Auth/external.pm
diff options
context:
space:
mode:
Diffstat (limited to 'FS/FS/Auth/external.pm')
-rw-r--r--FS/FS/Auth/external.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/FS/FS/Auth/external.pm b/FS/FS/Auth/external.pm
new file mode 100644
index 000000000..d2bc74600
--- /dev/null
+++ b/FS/FS/Auth/external.pm
@@ -0,0 +1,18 @@
+packages FS::Auth::external;
+#use base qw( FS::Auth );
+
+use strict;
+
+sub autocreate {
+ my $username = shift;
+ my $access_user = new FS::access_user {
+ 'username' => $username,
+ #'_password' => #XXX something random so a switch to internal auth doesn't
+ #let people on?
+ };
+ my $error = $access_user->insert;
+ #die $error if $error;
+}
+
+1;
+