summaryrefslogtreecommitdiffstats
path: root/lib/ASM/DB/Result/User.pm
diff options
context:
space:
mode:
authorLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2017-05-08 02:59:19 +0000
committerLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2017-05-08 02:59:19 +0000
commit9fa591cb0696bfc8f8af284bac9c4cd312fe293e (patch)
treea1d898498b8d58de68be2343ad953415544f73e0 /lib/ASM/DB/Result/User.pm
parentf91039f7bee00876022107e015c07879e15638d4 (diff)
Revert "Move users to DB"
This reverts commit 7342c7f0e19e15ab3c7ba2133a56393c15989f08. Turns out there are still issues after all.
Diffstat (limited to 'lib/ASM/DB/Result/User.pm')
-rw-r--r--lib/ASM/DB/Result/User.pm34
1 files changed, 0 insertions, 34 deletions
diff --git a/lib/ASM/DB/Result/User.pm b/lib/ASM/DB/Result/User.pm
index 675ccba..5e5d17c 100644
--- a/lib/ASM/DB/Result/User.pm
+++ b/lib/ASM/DB/Result/User.pm
@@ -6,8 +6,6 @@ use warnings;
use parent 'DBIx::Class::Core';
-use Authen::Passphrase::RejectAll;
-
__PACKAGE__->load_components('InflateColumn::DateTime', 'PassphraseColumn');
__PACKAGE__->table('users');
__PACKAGE__->add_columns(
@@ -32,41 +30,9 @@ __PACKAGE__->add_columns(
passphrase_check_method => 'check_password',
is_nullable => 0,
},
- flag_secret => {
- data_type => 'boolean',
- is_nullable => 0,
- default_value => 0,
- },
- flag_hilights => {
- data_type => 'boolean',
- is_nullable => 0,
- default_value => 0,
- },
- flag_admin => {
- data_type => 'boolean',
- is_nullable => 0,
- default_value => 0,
- },
- flag_plugin => {
- data_type => 'boolean',
- is_nullable => 0,
- default_value => 0,
- },
- flag_debug => {
- data_type => 'boolean',
- is_nullable => 0,
- default_value => 0,
- },
);
__PACKAGE__->set_primary_key('id');
__PACKAGE__->add_unique_constraint(uniq_user_name => ['name']);
-sub new {
- my $self = shift;
- $_[0]{passphrase} //= Authen::Passphrase::RejectAll->new;
-
- $self->SUPER::new(@_);
-}
-
1;